Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Doesn't respect column defaults #25

Open
avit opened this issue Apr 10, 2013 · 0 comments
Open

Doesn't respect column defaults #25

avit opened this issue Apr 10, 2013 · 0 comments

Comments

@avit
Copy link

avit commented Apr 10, 2013

If I've set a column default in my schema, populator won't set the attribute value and will try saving it as NULL. This causes errors when a column is not nullable.

Looking at the code, Populator::Record only looks at the column names, and anything that's not explicitly set by the user will be set to NULL. How about if we make it use the defaults from the schema too?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant