more general check for polymorphic relations
Specs
Merge pull request #95 from sol1dus/polymorphic_foreign_key

Polymorphic foreign key