Class: AddAppToRapns

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

Class Method Summary collapse

Class Method Details

.downObject


7
8
9
10
# File 'lib/generators/templates/add_app_to_rapns.rb', line 7

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

.upObject


2
3
4
5
# File 'lib/generators/templates/add_app_to_rapns.rb', line 2

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