Remove default connection for WithLockRetries
Make the :connection argument for WithLockRetries, by removing the default of ActiveRecord::Base. This prevents accidental use of the wrong connection once we begin using multiple databases.
显示
- .rubocop_todo/database/multiple_databases.yml 0 个添加, 1 个删除.rubocop_todo/database/multiple_databases.yml
- db/migrate/20210316171009_create_packages_helm_file_metadata.rb 7 个添加, 1 个删除...rate/20210316171009_create_packages_helm_file_metadata.rb
- db/migrate/20210504153354_create_clusters_integration_elasticstack.rb 7 个添加, 1 个删除...0210504153354_create_clusters_integration_elasticstack.rb
- db/migrate/20210628154900_create_detached_partitions_table.rb 7 个添加, 1 个删除...igrate/20210628154900_create_detached_partitions_table.rb
- db/migrate/20210720140841_create_postgres_async_indexes_table.rb 7 个添加, 1 个删除...ate/20210720140841_create_postgres_async_indexes_table.rb
- db/migrate/20210729081351_create_topics.rb 7 个添加, 1 个删除db/migrate/20210729081351_create_topics.rb
- lib/gitlab/database/migration_helpers.rb 1 个添加, 0 个删除lib/gitlab/database/migration_helpers.rb
- lib/gitlab/database/migrations/lock_retry_mixin.rb 5 个添加, 0 个删除lib/gitlab/database/migrations/lock_retry_mixin.rb
- lib/gitlab/database/schema_helpers.rb 1 个添加, 0 个删除lib/gitlab/database/schema_helpers.rb
- lib/gitlab/database/with_lock_retries.rb 1 个添加, 1 个删除lib/gitlab/database/with_lock_retries.rb
- spec/lib/gitlab/database/migrations/lock_retry_mixin_spec.rb 16 个添加, 2 个删除spec/lib/gitlab/database/migrations/lock_retry_mixin_spec.rb
- spec/lib/gitlab/database/with_lock_retries_outside_transaction_spec.rb 15 个添加, 14 个删除...ab/database/with_lock_retries_outside_transaction_spec.rb
- spec/lib/gitlab/database/with_lock_retries_spec.rb 1 个添加, 1 个删除spec/lib/gitlab/database/with_lock_retries_spec.rb
加载中
想要评论请 注册 或 登录