16470: Avoids crashing when running the rake task db:create.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 31 Jul 2020 19:43:40 +0000 (16:43 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Fri, 7 Aug 2020 14:54:35 +0000 (11:54 -0300)
commit6921ecacf90479af239580e098500300aa498ff3
tree2ad2726a621408dfd753a0cc3daa429d8d6d9144
parentb69d0344335cafe4f4b6d4af229616b5251d21ea
16470: Avoids crashing when running the rake task db:create.

There was a behaviour change on rake tasks that avoided the creation of the
test database. All initializers are now called from rake tasks, so those
initializers with code accessing the database will fail when the database
isn't created.

See: https://github.com/rails/rails/issues/32870

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
services/api/config/initializers/legacy_jobs_api.rb