To my knowledge, the new default in Rails 5 requires belongs_to
associations to be present. I made a model with this association, but the problem is I don\'t get pr
According to the issue re weird behaviour of config belongs_to_required_by_default, it seems like one of your other gems intervenes in ActiveRecord::Base
and causes the bug.
One of workarounds to the issue is to move the line
config.active_record.belongs_to_required_by_default = true
from initializers directly into application.rb
.
This worked for me smoothly.