Commit 665a6994 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Revert "Allow to parse heroku-generated database.yml config file."

This reverts commit 8a56e7db.
Because it actually breaks db setup for mysql
parent 5ea31c7f
...@@ -16,7 +16,7 @@ namespace :gitlab do ...@@ -16,7 +16,7 @@ namespace :gitlab do
Rake::Task["db:setup"].invoke Rake::Task["db:setup"].invoke
config = YAML.load(ERB.new(File.read(File.join(Rails.root, "config","database.yml"))).result) config = YAML.load_file(File.join(Rails.root,'config','database.yml'))[Rails.env]
success = case config["adapter"] success = case config["adapter"]
when /^mysql/ then when /^mysql/ then
Rake::Task["add_limits_mysql"].invoke Rake::Task["add_limits_mysql"].invoke
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment