Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-16 13:26:02 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-23 13:08:51 +0400
commitcd61239540c00279563cc0e4ae763a569be0bef5 (patch)
treef27e65b62150547ff638e401f041e810c9ba20da /lib/tasks/gitlab/setup.rake
parent43e77099d86960401013a45f56e29bfb83368d2c (diff)
Move the adapter check to the migration
Diffstat (limited to 'lib/tasks/gitlab/setup.rake')
-rw-r--r--lib/tasks/gitlab/setup.rake9
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