fix has_many relation to not depend only on association table