tab/db/migrate/20190508204805_rpush_2_1_0_updates.rb

12 lines
396 B
Ruby
Raw Permalink Normal View History

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