gitlab-org--gitlab-foss/db/migrate/20150206222854_add_notification_email_to_user.rb

13 lines
275 B
Ruby
Raw Normal View History

# rubocop:disable all
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