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