diff options
author | Carlos Figueiredo <carlos.figueiredo87@gmail.com> | 2017-02-27 17:06:32 -0500 |
---|---|---|
committer | Carlos Figueiredo <carlos.figueiredo87@gmail.com> | 2017-02-27 17:17:56 -0500 |
commit | 835bf751253769af17ffd548faea04aa44259f52 (patch) | |
tree | 54131eb827eb6fe3ea484288464b9ce6cab3a07b /activerecord/test/cases/connection_adapters | |
parent | 2e0f7baef344474b39d660db5fb0b8c9fb33dc3b (diff) | |
download | rails-835bf751253769af17ffd548faea04aa44259f52.tar.gz rails-835bf751253769af17ffd548faea04aa44259f52.tar.bz2 rails-835bf751253769af17ffd548faea04aa44259f52.zip |
Make required by default test for belongs_to association clearer
Since #18937 `belongs_to` associations receive a setting to determine if
it should be or not treated as `required` by default.
While the tests were still passing, it was not evident that the
"default" behaviour for `required` could change in fuction of a setting,
that is set by default for fresh Rails5 apps, but not for upgraded
apps.
This commit try to relate them to make it clear what is the behaviour
expected when the setting is set as `true` or not set.
Diffstat (limited to 'activerecord/test/cases/connection_adapters')
0 files changed, 0 insertions, 0 deletions