9dbd7e5aec
Closes #1932.
11 lines
253 B
Ruby
11 lines
253 B
Ruby
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
|