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: ab80f7e582f3022d75e3c0e6f734f44bc73293a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
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