Class: Rpush331Updates

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

Class Method Summary collapse

Class Method Details

.downObject



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

def self.down
  change_column :rpush_notifications, :device_token, :string, null: true, limit: 64
  change_column :rpush_feedback, :device_token, :string, null: true, limit: 64
end

.upObject



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

def self.up
  change_column :rpush_notifications, :device_token, :string, null: true
  change_column :rpush_feedback, :device_token, :string, null: true
end