This change restores setting usernames to something less obnoxious. Prior to this commit, I would on occassion get the following error in seeds: ```shell ❯ bin/rails db:seed Seeding with multiplication factor: 1 1. Creating Organizations. 2. Creating 10 Users. rake aborted! ActiveRecord::RecordInvalid: Validation failed: Username is too long (maximum is 30 characters) ./forem/db/seeds.rb:67:in `block (2 levels) in <main>' ./forem/db/seeds.rb:60:in `times' ./forem/db/seeds.rb:60:in `block in <main>' ./forem/app/lib/seeder.rb:30:in `create_if_none' ./forem/db/seeds.rb:57:in `<main>' <internal:~/.rbenv/versions/3.0.2/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' <internal:~/.rbenv/versions/3.0.2/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require' -e:1:in `<main>' Tasks: TOP => db:seed (See full trace by running task with --trace) ``` Related to work done in #16067 |
||
|---|---|---|
| .. | ||
| migrate | ||
| schema.rb | ||
| seeds.rb | ||