Rails delete record from joins table: delete_all fails when using additional joins
Happens both at Rails V 5.2.8.1
and Rails 7.1.3.2
Include associated many_to_many records and access intermediate table attribute
I’m trying to return the attribute from an intermediate table with related record in an index request, based on a different SO response I have:
Include associated many_to_many records and access intermediate table attribute
I’m trying to return the attribute from an intermediate table with related record in an index request, based on a different SO response I have:
Write a proper nested query Rails
This is the domain model of my app:
Order products by product_type.name in Rails
I have Product and ProductType
upgrading to rails 6.1.7.8 and activerecord query for top level string in jsonb column no longer returns results?
I am in the process of upgrading rails 6 to rails 7, and so I am going incrementally from 6.0.3.5
to 6.1.7.8
Is it valid practice to intentionally omit association definition with Rails ActiveRecord?
While been working on Ruby on Rails application, I was suggested to omit ActiveRecord association intensionally by my coworker for it’s defines unnecessary methods.
Rails many-to-many association query by AND of associated records
I have a Rails project with a Product model and a Feature model and a many-to-many relationship between them as follows: