Class: AddWpns
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddWpns
- Defined in:
- lib/generators/templates/add_wpns.rb
Defined Under Namespace
Modules: Rapns
Class Method Summary collapse
Class Method Details
.down ⇒ Object
12 13 14 15 |
# File 'lib/generators/templates/add_wpns.rb', line 12 def self.down AddWpns::Rapns::Notification.where(type: 'Rapns::Wpns::Notification').delete_all remove_column :rapns_notifications, :uri end |
.up ⇒ Object
8 9 10 |
# File 'lib/generators/templates/add_wpns.rb', line 8 def self.up add_column :rapns_notifications, :uri, :string, null: true end |