We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd68f6 commit cf73e0fCopy full SHA for cf73e0f
config/application.rb
@@ -36,7 +36,7 @@ class Application < Rails::Application
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
+ config.active_record.belongs_to_required_by_default = true
40
41
# Rails 8.0: `to_time` will always preserve the full timezone in Rails 8.1.
42
config.active_support.to_time_preserves_timezone = :zone
0 commit comments