diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-17 06:23:15 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-03-17 06:24:16 +0300 |
commit | 9b475bcce2497532081281f8a12d76c20c5473ef (patch) | |
tree | 3fea357092b5b155af1799969e05511d40da8144 /db/migrate/20170316061730_readd_notified_of_own_activity_to_users.rb | |
parent | 7cad597f6c8ba794c6852e23d718ed7827da35c6 (diff) |
Remove original migration and re-add required migration under a later timestamp
Diffstat (limited to 'db/migrate/20170316061730_readd_notified_of_own_activity_to_users.rb')
-rw-r--r-- | db/migrate/20170316061730_readd_notified_of_own_activity_to_users.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20170316061730_readd_notified_of_own_activity_to_users.rb b/db/migrate/20170316061730_readd_notified_of_own_activity_to_users.rb new file mode 100644 index 00000000000..a96193d3da6 --- /dev/null +++ b/db/migrate/20170316061730_readd_notified_of_own_activity_to_users.rb @@ -0,0 +1,14 @@ +class ReaddNotifiedOfOwnActivityToUsers < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + disable_ddl_transaction! + + DOWNTIME = false + + def up + add_column_with_default :users, :notified_of_own_activity, :boolean, default: false + end + + def down + remove_column :users, :notified_of_own_activity + end +end |