Sha256: be2c5a8f7b9ec11becf3c227f938358e26fc0ff5ab62c92a8860d537298f19d6

Contents?: true

Size: 538 Bytes

Versions: 26

Compression:

Stored size: 538 Bytes

Contents

class CreateRapnsFeedback < ActiveRecord::Migration
  def self.up
    create_table :rapns_feedback do |t|
      t.string    :device_token,          null: false, limit: 64
      t.timestamp :failed_at,             null: false
      t.timestamps
    end

    add_index :rapns_feedback, :device_token
  end

  def self.down
    if index_name_exists?(:rapns_feedback, :index_rapns_feedback_on_device_token, true)
      remove_index :rapns_feedback, name: :index_rapns_feedback_on_device_token
    end
    drop_table :rapns_feedback
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rpush-2.7.0-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.7.0 lib/generators/templates/create_rapns_feedback.rb
rpush-2.6.0-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.6.0 lib/generators/templates/create_rapns_feedback.rb
rpush-2.5.0 lib/generators/templates/create_rapns_feedback.rb
rpush-2.4.0-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.4.0 lib/generators/templates/create_rapns_feedback.rb
rpush-2.3.2-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.3.2 lib/generators/templates/create_rapns_feedback.rb
rpush-2.3.1-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.3.1 lib/generators/templates/create_rapns_feedback.rb
rpush-2.3.0-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.3.0 lib/generators/templates/create_rapns_feedback.rb
rpush-2.3.0.rc1 lib/generators/templates/create_rapns_feedback.rb
rpush-2.2.0-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.2.0 lib/generators/templates/create_rapns_feedback.rb
rpush-2.1.0-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.1.0 lib/generators/templates/create_rapns_feedback.rb
rpush-2.0.1-java lib/generators/templates/create_rapns_feedback.rb
rpush-2.0.1 lib/generators/templates/create_rapns_feedback.rb