Mysql – Rails Multiple join query
I have the below Model structure class Transaction belongs_to :company belongs_to :user end class Company belongs_to :address end class User belongs_to :address end classAddress has_many :companies has_many :users end I want to query all transactions and get both company address…