diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-08 05:42:34 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-08 05:42:34 +0300 |
commit | 3cd036e315576b8cd56f16965be6c4293b641a20 (patch) | |
tree | 7704725af660790ca79980a6f8da2db5b3efddbc /db/migrate | |
parent | 49d6721329bd9fccf656bb750ee8f6c712852cf6 (diff) | |
parent | 9dbd7e5aec921e43f3ea89c8e3357ca0174b0937 (diff) |
Merge branch 'notification_email'
Conflicts:
db/schema.rb
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20150206222854_add_notification_email_to_user.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20150206222854_add_notification_email_to_user.rb b/db/migrate/20150206222854_add_notification_email_to_user.rb new file mode 100644 index 00000000000..ab80f7e582f --- /dev/null +++ b/db/migrate/20150206222854_add_notification_email_to_user.rb @@ -0,0 +1,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 |