Class: MoveParamsToJson

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

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
# File 'lib/generators/notify_user/json_update/templates/move_params_to_json.rb', line 2

def change
	system('rake notify_user:move_params_to_json')

	remove_column :notify_user_notifications, :params
	rename_column :notify_user_notifications, :json, :params
end