]> git.openstreetmap.org Git - rails.git/commit
Enable active_record.belongs_to_required_by_default
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 23 Feb 2022 15:17:21 +0000 (15:17 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 23 Feb 2022 20:33:28 +0000 (20:33 +0000)
commit619ac4c5b2fbdbc610007376ee11e3921e475520
tree8d06056e129327757a3d3365e56544e15dcc78bd
parent3cf3b3ce4e9551d532fee3b26c1f0a708cf53388
Enable active_record.belongs_to_required_by_default

This switches the logic so that belongs_to parent objects must exist
by default, and marks the optional ones explicitly. This is reflected
in the null/not_null status on the relevant db columns.
app/models/access_token.rb
app/models/client_application.rb
app/models/issue.rb
app/models/note_comment.rb
app/models/oauth_token.rb
app/models/old_node.rb
app/models/old_relation.rb
app/models/old_way.rb
app/models/trace.rb
app/models/user_block.rb
config/application.rb