Permalink
Browse files

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
  • Loading branch information...
2 parents 25ec3c8 + fbf4bee commit 7dadb6aa0a65ff9ecd4b67d0686ab609fb9465ae @spastorino spastorino committed Jul 23, 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 7dadb6a

Please sign in to comment.