是否有可能/正确的表间关系只能走一条路?我有一个invoices表,我需要在其他表中参考,如commission_payments和membership_payments,但invoices表不需要commission_payment_id或membership_payment_id。换句话说,可能发生不同类型的交易,并且他们都可能附有发票,但发票不需要引用这些交易表。 invoices co
的减法返回的关系,我有三个型号 class Account
has_many :link_requests, :through => :suppliers
end
class Supplier
has_many :link_requests, :dependent => :destroy
end
class LinkRequest
belongs_to :