-
- Downloads
User#projects_limit remove DB default and added NOT NULL constraint
This change is required because otherwise if a user is created with a value for `projects_limit` that matches the DB default, it gets overwritten by `current_application_settings.default_projects_limit`. By removing the default we once again can allow a user to be created with a limit of 10 projects without the risk that it'll change to 10000
Showing
- app/models/user.rb 1 addition, 4 deletionsapp/models/user.rb
- changelogs/unreleased/31995-project-limit-default-fix.yml 5 additions, 0 deletionschangelogs/unreleased/31995-project-limit-default-fix.yml
- db/migrate/20171229225929_change_user_project_limit_not_null_and_remove_default.rb 38 additions, 0 deletions..._change_user_project_limit_not_null_and_remove_default.rb
- db/schema.rb 2 additions, 2 deletionsdb/schema.rb
- spec/models/user_spec.rb 17 additions, 0 deletionsspec/models/user_spec.rb
Please register or sign in to comment