Class: AddRpush::AddFailAfterToRpushNotifications

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

Class Method Summary collapse

Class Method Details

.downObject


345
346
347
# File 'lib/generators/templates/add_rpush.rb', line 345

def self.down
  remove_column :rpush_notifications, :fail_after
end

.upObject


341
342
343
# File 'lib/generators/templates/add_rpush.rb', line 341

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