We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Attempting to change a PostgreSQL column from NULL to NOT NULL. Added the following fizz command to a new migration:
change_column("posts", "destination_id", "integer", {null: false})
Running pop migrate -d produces:
pop migrate -d
sql - ALTER TABLE "posts" ALTER COLUMN "destination_id" TYPE integer, ALTER COLUMN "destination_id" DROP NOT NULL;```
instead of:
sql - ALTER TABLE "posts" ALTER COLUMN "destination_id" TYPE integer, ALTER COLUMN "destination_id" SET NOT NULL;
Workaround (empty options) is easy, but it seems this should work too.
The text was updated successfully, but these errors were encountered:
A colleague of mine hit this yesterday, except on a new column. He did:
add_column("posts", "kilograms", "numeric(13,4)", {null: false})
expecting that it would make a non-nullable column.
Sorry, something went wrong.
Respect "null": false in options
"null": false
28843d7
Closes #62
Successfully merging a pull request may close this issue.
Attempting to change a PostgreSQL column from NULL to NOT NULL. Added the following fizz command to a new migration:
Running
pop migrate -d
produces:instead of:
Workaround (empty options) is easy, but it seems this should work too.
The text was updated successfully, but these errors were encountered: