diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-02-28 16:19:43 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-06 12:53:14 +0100 |
commit | 986f470d40a3ed993bb6b2c2115a05c24eb575fa (patch) | |
tree | 6e6fba32d3cd6928311a433dda899122b79634a9 /db/migrate | |
parent | 7a22a5891129716808206535770032baa69cd07d (diff) | |
download | gitlab-ce-986f470d40a3ed993bb6b2c2115a05c24eb575fa.tar.gz |
Improve migration robustness and speed.
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180223120443_create_user_contributed_projects_table.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/db/migrate/20180223120443_create_user_contributed_projects_table.rb b/db/migrate/20180223120443_create_user_contributed_projects_table.rb index bbd39da14bd..2f7b6c578c3 100644 --- a/db/migrate/20180223120443_create_user_contributed_projects_table.rb +++ b/db/migrate/20180223120443_create_user_contributed_projects_table.rb @@ -9,8 +9,6 @@ class CreateUserContributedProjectsTable < ActiveRecord::Migration create_table :user_contributed_projects, id: false do |t| t.references :user, null: false t.references :project, null: false - - t.index [:user_id, :project_id], unique: true end add_concurrent_foreign_key :user_contributed_projects, :users, column: :user_id, on_delete: :cascade |