Add disable transaction validate_foreign_key cop
Add a cop to deny the use of disable_ddl_transaction! when only validate_foreign_key is used, as PostgreSQL will add and implicit transaction for single statements anyway.
上级
1f234ca7
No related branches found
No related tags found
显示
- .rubocop_todo/rspec/missing_feature_category.yml 1 个添加, 0 个删除.rubocop_todo/rspec/missing_feature_category.yml
- db/post_migrate/20230119095024_validate_fk_on_ci_builds_runner_session_partition_id_and_build_id.rb 0 个添加, 2 个删除..._on_ci_builds_runner_session_partition_id_and_build_id.rb
- rubocop/cop/migration/prevent_single_statement_with_disable_ddl_transaction.rb 86 个添加, 0 个删除.../prevent_single_statement_with_disable_ddl_transaction.rb
- spec/rubocop/cop/migration/prevent_single_statement_with_disable_ddl_transaction_spec.rb 67 个添加, 0 个删除...ent_single_statement_with_disable_ddl_transaction_spec.rb
想要评论请 注册 或 登录