Class: AddRpush::AddFailAfterToRpushNotifications

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

Class Method Summary collapse

Class Method Details

.downObject



398
399
400
# File 'lib/generators/templates/add_rpush.rb', line 398

def self.down
  remove_column :rpush_notifications, :fail_after
end

.upObject



394
395
396
# File 'lib/generators/templates/add_rpush.rb', line 394

def self.up
  add_column :rpush_notifications, :fail_after, :timestamp, null: true
end