Skip to content

Commit dba6054

Browse files
committed
Remove to set back to default value (true): config.active_record.belongs_to_required_by_default
1 parent cf73e0f commit dba6054

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

config/application.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ class Application < Rails::Application
3333
# Fixture paths
3434
config.fixture_paths = [Rails.root.join('spec/fixtures')]
3535

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 = true
40-
4136
# Rails 8.0: `to_time` will always preserve the full timezone in Rails 8.1.
4237
config.active_support.to_time_preserves_timezone = :zone
4338
end

0 commit comments

Comments
 (0)