Using ActiveRecord to model a many to many relationship.