Commit 7aecd3af authored by Adam Hegyi's avatar Adam Hegyi

Merge branch 'update-docs-example-for-adding-fk-docs' into 'master'

Update docs to disable rule in DB guides example

See merge request gitlab-org/gitlab!42308
parents b4380218 ee97c1ac
...@@ -300,7 +300,7 @@ include Gitlab::Database::MigrationHelpers ...@@ -300,7 +300,7 @@ include Gitlab::Database::MigrationHelpers
def up def up
with_lock_retries do with_lock_retries do
add_foreign_key :imports, :projects, column: :project_id, on_delete: :cascade add_foreign_key :imports, :projects, column: :project_id, on_delete: :cascade # rubocop:disable Migration/AddConcurrentForeignKey
end end
end end
...@@ -318,7 +318,7 @@ include Gitlab::Database::MigrationHelpers ...@@ -318,7 +318,7 @@ include Gitlab::Database::MigrationHelpers
def up def up
with_lock_retries do with_lock_retries do
add_foreign_key :imports, :users, column: :user_id, on_delete: :cascade add_foreign_key :imports, :users, column: :user_id, on_delete: :cascade # rubocop:disable Migration/AddConcurrentForeignKey
end end
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