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

set allow_password_change column in create_table file to null: false #1596

Open
hatsu38 opened this issue Apr 27, 2023 · 0 comments
Open

set allow_password_change column in create_table file to null: false #1596

hatsu38 opened this issue Apr 27, 2023 · 0 comments

Comments

@hatsu38
Copy link
Contributor

hatsu38 commented Apr 27, 2023

The allow_password_change column currently defaults to false. However, null is allowed.
FYI: https://thoughtbot.com/blog/avoid-the-threestate-boolean-problem

How about the following

 t.boolean  :allow_password_change, :default => false, :null => false
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