#23 Read default values from DB schema

Open
opened 3 years ago by otremblay · 1 comments

What it says on the tin: In the case of a default value being available, instead of checking against a nil or zero value, just set it to the one provided in the schema.

What it says on the tin: In the case of a default value being available, instead of checking against a nil or zero value, just set it to the one provided in the schema.
otremblay commented 3 years ago
Owner

We kind of have to do this because if we don't and just let the DB set the thing (which we could), the object we're passing the db would be invalid afterwards.

We kind of have to do this because if we don't and just let the DB set the thing (which we could), the object we're passing the db would be invalid afterwards.
Sign up for free to join this conversation. Already have an account? Sign in to comment
No Milestone
No assignee
Loading...
Cancel
Save
There is no content yet.