tab/db/migrate/20190508204813_rpush_3_2_4_updates.rb

10 lines
282 B
Ruby
Raw Normal View History

2019-05-08 22:50:19 +02:00
class Rpush324Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
def self.up
change_column :rpush_apps, :apn_key, :text, null: true
end
def self.down
change_column :rpush_apps, :apn_key, :string, null: true
end
end