Sha256: f6382087aa6e5994cf5bb8c1cfdf0b019d2c839dc17e90c3d1daac5b18bcebf0
Contents?: true
Size: 605 Bytes
Versions: 8
Compression:
Stored size: 605 Bytes
Contents
class CreateRapnsFeedback < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : 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
8 entries across 8 versions & 1 rubygems