debian-mirror-gitlab/db/migrate/20150206222854_add_notification_email_to_user.rb

12 lines
258 B
Ruby
Raw Normal View History

2018-12-23 12:14:25 +05:30
class AddNotificationEmailToUser < ActiveRecord::Migration[4.2]
2015-04-26 12:48:37 +05:30
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