summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-02-24 13:25:42 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-02-24 13:25:42 +0100
commit9f0e23d6093d67d368485e2ac7e4df0059935770 (patch)
tree1306e799f14360a76336f7622df21f4503c5939d /db/migrate
parent4535129e45cc98ab5a1f17f0950a93bd062e3a5a (diff)
downloadgitlab-ce-9f0e23d6093d67d368485e2ac7e4df0059935770.tar.gz
Fix tests
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170120131253_create_chat_teams.rb5
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