1
통해 두 Attendment & 및 보증 :has_one => 다중
belongs_to :event
belongs_to :account
따라서 1 attendments vouchings과의 관계 (1).
내 사고없이이 작업을 수행 할 방법이 너무 많습니까?
# attendment
has_one :vouching :through => [:event, :account]
참고 : 사실 너무 많이 생각하지 않아도됩니다.