Skip to content

add foreign keys for shipping method zones#446

Closed
BenMorganIO wants to merge 2 commits into
solidusio:masterfrom
BenMorganIO:add-foreign-keys-for-shipping-method-zones
Closed

add foreign keys for shipping method zones#446
BenMorganIO wants to merge 2 commits into
solidusio:masterfrom
BenMorganIO:add-foreign-keys-for-shipping-method-zones

Conversation

@BenMorganIO

Copy link
Copy Markdown
Contributor

Noticed that in #317 I didn't add foreign keys (or a dependent destroy).

@jhawthorn

Copy link
Copy Markdown
Contributor

Looks good to me 👍

@jhawthorn

Copy link
Copy Markdown
Contributor

One thought: these dependent: :destroys are going to be run on "soft destroys" (this is a paranoia model). Is that what we want?

@jhawthorn

Copy link
Copy Markdown
Contributor

This has a failing test

@BenMorganIO

Copy link
Copy Markdown
Contributor Author

@jhawthorn

Re: soft destroys.
I'm kinda on the fence here. Not sure if I should sway to keep the old associations or make them paranoid as well or just them disappear.

Re: failing spec.
I believe that's referential integrity doing its work :D. Kinda getting a bit giggly reading that failure.

@jhawthorn

Copy link
Copy Markdown
Contributor

Closing due to age.

I don't think we want to be destroying the associated records so long as this is a "paranoia" model.

Feel free to open a new PR if this is addressed

@jhawthorn jhawthorn closed this Nov 24, 2015
@BenMorganIO BenMorganIO deleted the add-foreign-keys-for-shipping-method-zones branch November 24, 2015 04:40
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