Class: AddRpush::AddWpns

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

Defined Under Namespace

Modules: Rapns

Class Method Summary collapse

Class Method Details

.downObject


275
276
277
278
# File 'lib/generators/templates/add_rpush.rb', line 275

def self.down
  AddWpns::Rapns::Notification.where(type: 'Rapns::Wpns::Notification').delete_all
  remove_column :rapns_notifications, :uri
end

.upObject


271
272
273
# File 'lib/generators/templates/add_rpush.rb', line 271

def self.up
  add_column :rapns_notifications, :uri, :string, null: true
end