Can a model “belongs_to” either/or more than one model?
问题 Apologies if this is a slightly noob question, but looking to clarify my thoughts on this. I have a model that can EITHER belong to one model, or another. For example: Let's say I have a Team model and I have a Member model, and both of those models can have one BankAccount. class Team has_many :members has_one :bank_account end class Member belongs_to :team has_one :bank_account end class BankAccount belongs_to :team, :member end To me, the above makes sense, but I'd love to clarify this