Permalink
Browse files

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".
  • Loading branch information...
1 parent ff05736 commit 8dc4745c7bc7fa3c58e7b45599f30d502a86dfc4 @arunagw arunagw committed Jul 21, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/railties/databases.rake
@@ -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

0 comments on commit 8dc4745

Please sign in to comment.