Class: AddJsonColumnToNotifications
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- AddJsonColumnToNotifications
- Defined in:
- lib/generators/notify_user/json_update/templates/add_json_column_to_notifications.rb
Instance Method Summary collapse
Instance Method Details
#down ⇒ Object
6 7 8 |
# File 'lib/generators/notify_user/json_update/templates/add_json_column_to_notifications.rb', line 6 def down remove_column :notify_user_notifications, :json end |
#up ⇒ Object
2 3 4 |
# File 'lib/generators/notify_user/json_update/templates/add_json_column_to_notifications.rb', line 2 def up add_column :notify_user_notifications, :json, :json end |