Class: AddRpush::AddAppToRapns

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/templates/add_rpush.rb

Class Method Summary collapse

Class Method Details

.downObject


109
110
111
112
# File 'lib/generators/templates/add_rpush.rb', line 109

def self.down
  remove_column :rapns_notifications, :app
  remove_column :rapns_feedback, :app
end

.upObject


104
105
106
107
# File 'lib/generators/templates/add_rpush.rb', line 104

def self.up
  add_column :rapns_notifications, :app, :string, null: true
  add_column :rapns_feedback, :app, :string, null: true
end