Class: AddRpush::AddWpns
- Inherits:
-
Object
- Object
- AddRpush::AddWpns
- Defined in:
- lib/generators/templates/add_rpush.rb
Defined Under Namespace
Modules: Rapns
Class Method Summary collapse
Class Method Details
.down ⇒ Object
249 250 251 252 |
# File 'lib/generators/templates/add_rpush.rb', line 249 def self.down AddWpns::Rapns::Notification.where(type: 'Rapns::Wpns::Notification').delete_all remove_column :rapns_notifications, :uri end |
.up ⇒ Object
245 246 247 |
# File 'lib/generators/templates/add_rpush.rb', line 245 def self.up add_column :rapns_notifications, :uri, :string, null: true end |