rails/activerecord/test/cases/associations
Edouard CHIN f2873d596d Make belongs_to_required_by_default a class attribute:
- I'm hoping to get this change accepted even though this flag was
  introduced years ago in 6576f7354e50afb79881aaf3a6f50f4e81dfab70

  My use case is the following:

  We were never enforcing belongs to association and we have a lot
  of models that implicitely declare an association as optional.
  We are now changing all our models to make associations required
  by default.
  Since we have a lot of models (more than 1000), I'd like to
  progressively enable them to use the `belongs_to_required_by_default`
  flag.

  The problem is that this flag is a mattr_accessor and doesn't to be
  set per model. We basically need to modify all our models (which
  could take years) before being able to modify the global flag.

  I'd like to change this flag to a class_attribute to solve the
  issue.
2019-12-17 19:17:58 +01:00
..
belongs_to_associations_test.rb Make belongs_to_required_by_default a class attribute: 2019-12-17 19:17:58 +01:00
bidirectional_destroy_dependencies_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
callbacks_test.rb Fix collection callbacks not terminating when abort is thrown 2019-11-06 18:19:33 +09:00
cascaded_eager_loading_test.rb Merge pull request #37457 from sinsoku/fix_issue_37446 2019-10-13 20:27:38 +09:00
eager_load_includes_full_sti_class_test.rb Fix CI failure due to remaining tagging records 2019-03-26 12:59:16 +09:00
eager_load_nested_include_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
eager_singularization_test.rb Use frozen-string-literal in ActiveRecord 2017-07-19 22:27:07 +03:00
eager_test.rb Merge pull request #37747 from bradleyprice/check-association-loaded-across-collection-on-preload 2019-11-20 08:53:50 +09:00
extension_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
has_and_belongs_to_many_associations_test.rb Fix join middle table alias when using HABTM 2019-07-26 23:12:44 +09:00
has_many_associations_test.rb Fix random CI failure due to non-deterministic sorting order 2019-12-03 09:43:27 +09:00
has_many_through_associations_test.rb Refactor association.scoping not to rely on klass.all 2019-10-22 00:06:31 +09:00
has_one_associations_test.rb :polymorphic, :as, and :foreign_type are valid for polymorphic association 2019-11-10 10:54:58 +09:00
has_one_through_associations_test.rb More exercise singular association query 2018-11-28 03:34:20 +09:00
inner_join_association_test.rb Maintain eager loading joining order as before 2019-09-18 17:42:15 +09:00
inverse_associations_test.rb Check that entire collection has been loaded before short circuiting 2019-11-19 15:32:36 -06:00
join_model_test.rb Replace assert ! with assert_not 2018-04-19 08:11:33 -04:00
left_outer_join_association_test.rb Fix merging left_joins to maintain its own join_type context 2019-04-27 21:43:57 +09:00
nested_through_associations_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
required_test.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00