Date: 2008-07-08 17:04
Sender: James Hunt
I received this error when I had incorrectly stated my has_many
:through relationship as
class Memberships
belongs_to :role
belongs_to :person
end
class Person
has_many :memberships
has_many :roles, :through => :memberships
end
class Role
has_many :roles
has_many :people, :through => :roles
end
I corrected the definition of the Role class to this:
class Role
has_many :memberships
has_many :people, :through => :memberships
end
and railroad -M worked successfully.
(I only found the problem with the -v flag set for railroad.) |