Class: Rpush210Updates

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

Class Method Summary collapse

Class Method Details

.downObject



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

def self.down
  remove_column :rpush_notifications, :url_args
  remove_column :rpush_notifications, :category
end

.upObject



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

def self.up
  add_column :rpush_notifications, :url_args, :text, null: true
  add_column :rpush_notifications, :category, :string, null: true
end