/polymorphic_comments

Your favorite movies and actors can be modeled with a Many-to-Many relationship

Primary LanguageRuby

##A polymorphic relationship destined for endless commentary... A play in relationships - This repo highlights the use of both a many-to-many and a polymorphic relationship in a Postgres database. The many-to-many is formed between Actors & Movies while the polymorphic relationship is between comments and the two entities: Actors & Movies.