diff options
| author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-27 09:04:24 +0800 |
|---|---|---|
| committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-04-27 09:04:24 +0800 |
| commit | 3c3e14430ba14ae45ec758d263ba882ddf32f76f (patch) | |
| tree | 12e7b0aea0bc961650115f3c0e1e988ed5dbb65b | |
| parent | 3f00f19d37aec52ea6c06c93db240e72ba08a460 (diff) | |
| download | gitlab-ce-3c3e14430ba14ae45ec758d263ba882ddf32f76f.tar.gz | |
Remove unecessary index on ci_runner_groups.runner_id
| -rw-r--r-- | db/migrate/20170301101006_add_ci_runner_groups.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/db/migrate/20170301101006_add_ci_runner_groups.rb b/db/migrate/20170301101006_add_ci_runner_groups.rb index 3954f6ffb87..1c4430981a9 100644 --- a/db/migrate/20170301101006_add_ci_runner_groups.rb +++ b/db/migrate/20170301101006_add_ci_runner_groups.rb @@ -11,11 +11,9 @@ class AddCiRunnerGroups < ActiveRecord::Migration t.integer :group_id end - add_concurrent_index :ci_runner_groups, :runner_id - add_concurrent_foreign_key :ci_runner_groups, :ci_runners, column: :runner_id, on_delete: :cascade - add_concurrent_index :ci_runner_groups, :group_id add_concurrent_index :ci_runner_groups, [:runner_id, :group_id], unique: true + add_concurrent_foreign_key :ci_runner_groups, :ci_runners, column: :runner_id, on_delete: :cascade add_concurrent_foreign_key :ci_runner_groups, :namespaces, column: :group_id, on_delete: :cascade end |
