Commit 3c3e1443 authored by Dylan Griffith's avatar Dylan Griffith

Remove unecessary index on ci_runner_groups.runner_id

parent 3f00f19d
...@@ -11,11 +11,9 @@ class AddCiRunnerGroups < ActiveRecord::Migration ...@@ -11,11 +11,9 @@ class AddCiRunnerGroups < ActiveRecord::Migration
t.integer :group_id t.integer :group_id
end 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, :group_id
add_concurrent_index :ci_runner_groups, [:runner_id, :group_id], unique: true 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 add_concurrent_foreign_key :ci_runner_groups, :namespaces, column: :group_id, on_delete: :cascade
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment