2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2015-04-26 12:48:37 +05:30
|
|
|
class AddNotificationEmailToUser < ActiveRecord::Migration
|
|
|
|
def up
|
|
|
|
add_column :users, :notification_email, :string
|
|
|
|
|
|
|
|
execute "UPDATE users SET notification_email = email"
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :users, :notification_email
|
|
|
|
end
|
|
|
|
end
|