diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-24 13:25:42 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-02-24 13:25:42 +0100 |
commit | 9f0e23d6093d67d368485e2ac7e4df0059935770 (patch) | |
tree | 1306e799f14360a76336f7622df21f4503c5939d /db/migrate | |
parent | 4535129e45cc98ab5a1f17f0950a93bd062e3a5a (diff) | |
download | gitlab-ce-9f0e23d6093d67d368485e2ac7e4df0059935770.tar.gz |
Fix tests
Diffstat (limited to 'db/migrate')
-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 |