diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-04-16 11:26:02 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-04-23 11:08:51 +0200 |
commit | cd61239540c00279563cc0e4ae763a569be0bef5 (patch) | |
tree | f27e65b62150547ff638e401f041e810c9ba20da /lib | |
parent | 43e77099d86960401013a45f56e29bfb83368d2c (diff) | |
download | gitlab-ce-cd61239540c00279563cc0e4ae763a569be0bef5.tar.gz |
Move the adapter check to the migration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/setup.rake | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/tasks/gitlab/setup.rake b/lib/tasks/gitlab/setup.rake index 853994dd67d..8b4ccdfc3fe 100644 --- a/lib/tasks/gitlab/setup.rake +++ b/lib/tasks/gitlab/setup.rake @@ -15,14 +15,7 @@ namespace :gitlab do end Rake::Task["db:setup"].invoke - - config = YAML.load_file(File.join(Rails.root,'config','database.yml'))[Rails.env] - success = case config["adapter"] - when /^mysql/ then - Rake::Task["add_limits_mysql"].invoke - when "postgresql" then - end - + Rake::Task["add_limits_mysql"].invoke Rake::Task["db:seed_fu"].invoke rescue Gitlab::TaskAbortedByUserError puts "Quitting...".red |