Rails 6.1 adds support for belongs_to to has_many inversing
21-Jan-2021 1593
Before Rails 6.1, we could only traverse the object chain in one direction - from has_many to belongs_to. Now we can traverse the chain bi-directionally.The inverse_of option, both in belongs_to and has_many is used to specify the name of the inverse association.Let's see an example.
Rails 6.1 adds support for belongs_to to has_many inversing #ruby #rubydeveloper #rubyonrails #Rails #support #belongs_to #has_many #inversing https://rubyonrails.ba/link/rails-6-1-adds-support-for-belongs_to-to-has_many-inversing