This conditions is required to work with database create task. 1.9.2 is having a bug with "Calling return within begin still executes else".

This commit is contained in:
Arun Agrawal
2011-07-21 09:47:42 +05:30
parent 64268c5dd1
commit fbf4bee6ed

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