RubyFlow The Ruby and Rails community linklog

Cheat ActiveRecord with pg_morph!

pg_morph is a gem created by Hania Seweryn from Lunar Logic. It makes it possible to add foreign key constraints for each polymorphic relation type with ActiveRecord and postgreSQL. Hania wrote the “Polymorphic relations and DB consistency with ease? From now – yes!” post about it. Have a nice reading!

Comments

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in