Skip to content

Remove foreigner gem - #4

Open
tscholz wants to merge 2 commits into
jesseproudman:masterfrom
cargoserver:no_foreign_key_constraints
Open

Remove foreigner gem#4
tscholz wants to merge 2 commits into
jesseproudman:masterfrom
cargoserver:no_foreign_key_constraints

Conversation

@tscholz

@tscholz tscholz commented Oct 19, 2015

Copy link
Copy Markdown

Hi,

we run into the same issue as described here when running our test suite on Rails 3.2. Unfortunately it is not an option for us to disable triggers in our test env at all as we have tests/features depending on postgres triggers. As there is no clean way to deal with this I'd suggest to drop foreign keys and the dependancy to the foreigner gem, at least for rails 3 versions.

@jesseproudman

Copy link
Copy Markdown
Owner

This PR has a merge conflict.

I'm also not sure I'm comfortable removing the foreigner requirement, particularly without adding model level hooks to accomplish the same goal. The existing foreign key relationships cascade deletes, and there's nothing here to support that.

@tscholz

tscholz commented Nov 18, 2015

Copy link
Copy Markdown
Author

Thank you for the review and your feedback. The merge conflict is solved.

Not sure if I miss something but I think activerecord already cascade deletes as specified here.

@jesseproudman

Copy link
Copy Markdown
Owner

Thanks! I'm going to have another member of our engineering org take a look to verify functionality. Standby!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants