Upgrade seed-fu to 2.3.7
Summary
We should upgrade seed-fu from 2.3.6 to 2.3.7 as on an environment with PostgreSQL 10 (10.0 and 10.1) developers will see an error.
Relevant logs
When bootstraping gitlab-ce with PG 10, we can get logs as follows:
support/bootstrap-rails
[...]
= Seed from /private/tmp/gitlab-development-kit/gitlab/db/fixtures/development/01_admin.rb
**************************************************
⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.
**************************************************
rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR: column "increment_by" does not exist
LINE 1: ...users_id_seq', (SELECT GREATEST(MAX("id")+(SELECT increment_...
^
: SELECT setval('public.users_id_seq', (SELECT GREATEST(MAX("id")+(SELECT increment_by FROM public.users_id_seq), (SELECT min_value FROM public.users_id_seq)) FROM "users"), false)
(eval):4:in `block (3 levels) in run_file'
/private/tmp/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:14:in `quiet'
(eval):3:in `block (2 levels) in run_file'
/private/tmp/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:20:in `setup_db'
/private/tmp/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:4:in `block (2 levels) in <top (required)>'
/private/tmp/gitlab-development-kit/gitlab/lib/tasks/dev.rake:7:in `block (2 levels) in <top (required)>'
/home/a/.rbenv/versions/2.3.5/bin/bundle:22:in `load'
/home/a/.rbenv/versions/2.3.5/bin/bundle:22:in `<main>'
PG::UndefinedColumn: ERROR: column "increment_by" does not exist
LINE 1: ...users_id_seq', (SELECT GREATEST(MAX("id")+(SELECT increment_...
^
(eval):4:in `block (3 levels) in run_file'
/private/tmp/gitlab-development-kit/gitlab/lib/gitlab/seeder.rb:14:in `quiet'
(eval):3:in `block (2 levels) in run_file'
/private/tmp/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:20:in `setup_db'
/private/tmp/gitlab-development-kit/gitlab/lib/tasks/gitlab/setup.rake:4:in `block (2 levels) in <top (required)>'
/private/tmp/gitlab-development-kit/gitlab/lib/tasks/dev.rake:7:in `block (2 levels) in <top (required)>'
/home/a/.rbenv/versions/2.3.5/bin/bundle:22:in `load'
/home/a/.rbenv/versions/2.3.5/bin/bundle:22:in `<main>'
Tasks: TOP => db:seed_fu
(See full trace by running task with --trace)
support/bootstrap-rails failed
make: *** [postgresql/data] Error 1
Possible fixes
Upgrade seed-fu to 2.3.7 to avoid errors on PG 10.
Links
Edited by Takuya Noguchi