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
The table has a column already, with no default value. I want to add a default value to it without changing anything other.
The text was updated successfully, but these errors were encountered:
alter table_for(Post) do change_default published_at : Time, default: :now end
Sorry, something went wrong.
As far as I know, it's not documented anywhere.
Nope, not currently luckyframework/website#1077
@jwoertink Is it possible to remove a default value from a column?
ALTER TABLE users ALTER COLUMN role DROP DEFAULT;
There's no helper method to do that, but you can just run the raw SQL like you have.
No branches or pull requests
The table has a column already, with no default value. I want to add a default value to it without changing anything other.
The text was updated successfully, but these errors were encountered: