Skip to content

Has one with zero#681

Merged
dxg merged 6 commits into
dresende:masterfrom
stueynz:hasOne-with-zeroID
Dec 8, 2015
Merged

Has one with zero#681
dxg merged 6 commits into
dresende:masterfrom
stueynz:hasOne-with-zeroID

Conversation

@stueynz

@stueynz stueynz commented Dec 4, 2015

Copy link
Copy Markdown

I've got a pre-existing database that started all its 'serial' IDs at zero...so I need to allow for Zero as a valid value for FK column in hasOne().

hasValues() is only used in hasOne association, so it's probably ok to make this change.

…ng databases may've used zero as a valid entity identifier
…ng databases may've used zero as a valid entity identifier.
@dxg

dxg commented Dec 6, 2015

Copy link
Copy Markdown
Collaborator

Looks good and makes sense, however the new tests are failing in postgres :(

@stueynz

stueynz commented Dec 7, 2015

Copy link
Copy Markdown
Author

Fixed for postgres....better check sqllite now.

@stueynz

stueynz commented Dec 7, 2015

Copy link
Copy Markdown
Author

Fixed it for postgres & sqlite wonder what's wrong for redshift.

@stueynz

stueynz commented Dec 8, 2015

Copy link
Copy Markdown
Author

Had to do a silly commit to force Travis to re-try the build. Seems ok now.

@dxg

dxg commented Dec 8, 2015

Copy link
Copy Markdown
Collaborator

👍

dxg added a commit that referenced this pull request Dec 8, 2015
@dxg dxg merged commit b704d31 into dresende:master Dec 8, 2015
@dxg

dxg commented Dec 8, 2015

Copy link
Copy Markdown
Collaborator

Released in v2.1.29.

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