Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out why Knex defaultTo leaves properties null #2

Open
brebory opened this issue May 4, 2015 · 0 comments
Open

Figure out why Knex defaultTo leaves properties null #2

brebory opened this issue May 4, 2015 · 0 comments

Comments

@brebory
Copy link
Member

brebory commented May 4, 2015

.notNullable().defaultTo() is not working the way we expect.

If we can figure out why this doesn't just automatically load the value on create, we should get it to do that. If not, we should remove all defaultTos from the migrations and not expect default values to work on the knex layer. We can instead assign defaults in onCreate if needed.

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

No branches or pull requests

1 participant