tab/db/migrate/20190508204810_rpush_3_1_0_add_pushy.rb

10 lines
301 B
Ruby
Raw Permalink Normal View History

2019-05-08 22:50:19 +02:00
class Rpush310AddPushy < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
def self.up
add_column :rpush_notifications, :external_device_id, :string, null: true
end
def self.down
remove_column :rpush_notifications, :external_device_id
end
end