Make polymorphic has_many work in rails 3.1.1 #76

Merged
merged 1 commit into from Nov 21, 2011

Conversation

Projects
None yet
2 participants
@tomhughes
Contributor

tomhughes commented Nov 18, 2011

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.

cfis added a commit that referenced this pull request Nov 21, 2011

Merge pull request #76 from tomhughes/master
Make polymorphic has_many work in rails 3.1.1

@cfis cfis merged commit ec261b0 into composite-primary-keys:master Nov 21, 2011

@cfis

This comment has been minimized.

Show comment Hide comment
@cfis

cfis Nov 21, 2011

Contributor

Thanks - Charlie

Contributor

cfis commented Nov 21, 2011

Thanks - Charlie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment