Class: Rpush301Updates

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

Class Method Summary collapse

Class Method Details

.downObject



8
9
10
11
12
# File 'lib/generators/templates/rpush_3_0_1_updates.rb', line 8

def self.down
  change_column_null :rpush_notifications, :mutable_content, true
  change_column_null :rpush_notifications, :content_available, true
  change_column_null :rpush_notifications, :alert_is_json, true
end

.upObject



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

def self.up
  change_column_null :rpush_notifications, :mutable_content, false
  change_column_null :rpush_notifications, :content_available, false
  change_column_null :rpush_notifications, :alert_is_json, false
end