tab/db/migrate/20190508204816_rpush_4_1_0_updates.rb

10 lines
358 B
Ruby
Raw Normal View History

2019-05-08 22:50:19 +02:00
class Rpush410Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration["#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}"] : ActiveRecord::Migration
def self.up
add_column :rpush_notifications, :dry_run, :boolean, null: false, default: false
end
def self.down
remove_column :rpush_notifications, :dry_run
end
end