Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Make polymorphic has_many work in rails 3.1.1 #76
It seems polymorphic has_many also changed in rails 3.1.1 although the resulting failure was more subtle in that is just stopped adding the type part of the constraint.
This commit fixes that, and generally updates add_constraints to match the current (rails 3.1.2) code modulo the cpk specific changes.