Class: AddRpush::AddAppToRapns

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

Class Method Summary collapse

Class Method Details

.downObject



111
112
113
114
# File 'lib/generators/templates/add_rpush.rb', line 111

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

.upObject



106
107
108
109
# File 'lib/generators/templates/add_rpush.rb', line 106

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