diff options
author | Stan Hu <stanhu@gmail.com> | 2017-12-27 16:41:28 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-01-02 23:44:51 +0300 |
commit | ad88e3f88d2ac287f5a95952f95da4feae90944e (patch) | |
tree | b4cbd1c5722fdfe2c15ac24588c8c74b94a21f22 /lib/gitlab/seeder.rb | |
parent | ff077cf7dc5cfd7c6c6206d801ea3f326f7af1aa (diff) |
Fix `rake db:seed_fu` not doing anything in CI
The default behavior of seed_fu is to load the fixtures using the RAILS_ENV
environment. In CI, since we set RAILS_ENV=test, nothing is ever
loaded. Instead of `rake db:seed_fu`, use `rake gitlab:setup`, which sets up
MySQL properly with limits.
Closes #41517
Diffstat (limited to 'lib/gitlab/seeder.rb')
-rw-r--r-- | lib/gitlab/seeder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb index 30df7e4a831..94a481a0f2e 100644 --- a/lib/gitlab/seeder.rb +++ b/lib/gitlab/seeder.rb @@ -8,7 +8,7 @@ end module Gitlab class Seeder def self.quiet - mute_mailer unless Rails.env.test? + mute_mailer SeedFu.quiet = true |