Merge pull request #2171 from arunagw/database-rake-1.9.2

This conditions is required to work with database create task. 1.9.2 is h
This commit is contained in:
Santiago Pastorino
2011-07-23 07:58:59 -07:00

View File

@@ -115,7 +115,8 @@ db_namespace = namespace :db do
end
end
else
$stderr.puts "#{config['database']} already exists"
# Bug with 1.9.2 Calling return within begin still executes else
$stderr.puts "#{config['database']} already exists" unless config['adapter'] =~ /sqlite/
end
end