diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-24 15:25:42 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-24 15:25:42 +0300 |
commit | 9f0e23d6093d67d368485e2ac7e4df0059935770 (patch) | |
tree | 1306e799f14360a76336f7622df21f4503c5939d /db/migrate/20170120131253_create_chat_teams.rb | |
parent | 4535129e45cc98ab5a1f17f0950a93bd062e3a5a (diff) |
Fix tests
Diffstat (limited to 'db/migrate/20170120131253_create_chat_teams.rb')
-rw-r--r-- | db/migrate/20170120131253_create_chat_teams.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/migrate/20170120131253_create_chat_teams.rb b/db/migrate/20170120131253_create_chat_teams.rb index 6476c239152..2d9341d235f 100644 --- a/db/migrate/20170120131253_create_chat_teams.rb +++ b/db/migrate/20170120131253_create_chat_teams.rb @@ -1,7 +1,8 @@ class CreateChatTeams < ActiveRecord::Migration include Gitlab::Database::MigrationHelpers - DOWNTIME = false + DOWNTIME = true + DOWNTIME_REASON = "Adding a foreign key" def change create_table :chat_teams do |t| @@ -12,6 +13,6 @@ class CreateChatTeams < ActiveRecord::Migration t.timestamps null: false end - add_foreign_key :chat_teams, :namespaces, on_delete: :cascade + add_concurrent_foreign_key :chat_teams, :namespaces, on_delete: :cascade end end |