2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2015-02-06 18:23:58 -05:00
|
|
|
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
|