summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2017-03-01 20:34:29 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2017-03-02 10:21:29 +0100
commit52c4a7866ed010d8db67e5ca976d8c73d4084784 (patch)
treea1cbb2d3910f9433e23dec22cc0f8c94c2e8675c /db/migrate
parentf6247600a3f5d500952b0ba32e6915a2d045e392 (diff)
downloadgitlab-ce-52c4a7866ed010d8db67e5ca976d8c73d4084784.tar.gz
Improve UX
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170120131253_create_chat_teams.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/migrate/20170120131253_create_chat_teams.rb b/db/migrate/20170120131253_create_chat_teams.rb
index 2d9341d235f..699226d60c9 100644
--- a/db/migrate/20170120131253_create_chat_teams.rb
+++ b/db/migrate/20170120131253_create_chat_teams.rb
@@ -4,6 +4,8 @@ class CreateChatTeams < ActiveRecord::Migration
DOWNTIME = true
DOWNTIME_REASON = "Adding a foreign key"
+ disable_ddl_transaction!
+
def change
create_table :chat_teams do |t|
t.integer :namespace_id, index: true
@@ -13,6 +15,6 @@ class CreateChatTeams < ActiveRecord::Migration
t.timestamps null: false
end
- add_concurrent_foreign_key :chat_teams, :namespaces, on_delete: :cascade
+ add_concurrent_foreign_key :chat_teams, :namespaces, column: :namespace_id
end
end