Add a new cop Database/DisableReferentialIntegrity
Add a cop to prevent usage of disable_referential_integrity as this method can lead to data consistency problems and create unsafe situations where triggers on all tables are disabled.
显示
- .rubocop_todo/database/disable_referential_integrity.yml 4 个添加, 0 个删除.rubocop_todo/database/disable_referential_integrity.yml
- rubocop/cop/database/disable_referential_integrity.rb 32 个添加, 0 个删除rubocop/cop/database/disable_referential_integrity.rb
- spec/rubocop/cop/database/disable_referential_integrity_spec.rb 36 个添加, 0 个删除...ubocop/cop/database/disable_referential_integrity_spec.rb
加载中
想要评论请 注册 或 登录