debian-mirror-gitlab/db/migrate/20150206222854_add_notification_email_to_user.rb
2019-02-15 15:39:39 +05:30

11 lines
258 B
Ruby

class AddNotificationEmailToUser < ActiveRecord::Migration[4.2]
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