File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ class Application < Rails::Application
33
33
# Fixture paths
34
34
config . fixture_paths = [ Rails . root . join ( 'spec/fixtures' ) ]
35
35
36
+ # TODO: The following config should be switched to its default value `true`, but not urgent.
37
+ # Rails 5.0: Require `belongs_to` associations by default. Previous versions had false.
38
+ # https://railsguides.jp/configuring.html#config-active-record-belongs-to-required-by-default
39
+ config . active_record . belongs_to_required_by_default = false
40
+
36
41
# Rails 8.0: `to_time` will always preserve the full timezone in Rails 8.1.
37
42
config . active_support . to_time_preserves_timezone = :zone
38
43
end
Original file line number Diff line number Diff line change 17
17
#ActiveSupport.to_time_preserves_timezone = true
18
18
19
19
# Require `belongs_to` associations by default. Previous versions had false.
20
- Rails . application . config . active_record . belongs_to_required_by_default = false
20
+ # Rails.application.config.active_record.belongs_to_required_by_default = false
You can’t perform that action at this time.
0 commit comments