BigW Consortium Gitlab

20150206222854_add_notification_email_to_user.rb 275 Bytes
Newer Older
1
# rubocop:disable all
2 3 4 5 6 7 8 9 10 11 12
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