Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Do What The F*ck You Want To Public License
3.52k
stars
1.14k
forks
source link
set allow_password_change column in create_table file to null: false #1596
Open
hatsu38 opened 1 year ago
The allow_password_change column currently defaults to false. However, null is allowed. FYI: https://thoughtbot.com/blog/avoid-the-threestate-boolean-problem
https://github.com/lynndylanhurley/devise_token_auth/blob/6fa4deef496deb4bc0ba7c48e5cf57976d245e50/lib/generators/devise_token_auth/templates/devise_token_auth_create_users.rb.erb#L15
How about the following