tab/db/migrate/20190508204814_rpush_3_3_0_updates.rb

10 lines
282 B
Ruby
Raw Normal View History

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