diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
commit | b39512ed755239198a9c294b6a45e65c05900235 (patch) | |
tree | d234a3efade1de67c46b9e5a38ce813627726aa7 /lib/tasks/dev.rake | |
parent | d31474cf3b17ece37939d20082b07f6657cc79a9 (diff) |
Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42
Diffstat (limited to 'lib/tasks/dev.rake')
-rw-r--r-- | lib/tasks/dev.rake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index 48bf49ff284..129f4c0ff0e 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -27,6 +27,21 @@ namespace :dev do Rails.application.eager_load! end + desc "GitLab | Dev | Load specific fixture" + task 'fixtures:load', [:fixture_name] => :environment do |_, args| + fixture_name = args.fixture_name + + if fixture_name.nil? + puts "No fixture name was provided" + next + end + + ENV['FIXTURE_PATH'] = 'db/fixtures/development/' + ENV['FILTER'] = args.fixture_name + + Rake::Task['db:seed_fu'].invoke + end + # If there are any clients connected to the DB, PostgreSQL won't let # you drop the database. It's possible that Sidekiq, Puma, or # some other client will be hanging onto a connection, preventing |