Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20150206222854_add_notification_email_to_user.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7b0c251db4f26403cae5178f5bf90cb4fa68eb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
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