Skip to content
This repository
Browse code

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...
commit fbf4bee6ed3682b361d6fbeca8e185e665e26b81 1 parent 64268c5
Arun Agrawal authored July 21, 2011
3  activerecord/lib/active_record/railties/databases.rake
@@ -115,7 +115,8 @@ db_namespace = namespace :db do
115 115
         end
116 116
       end
117 117
     else
118  
-      $stderr.puts "#{config['database']} already exists"
  118
+      # Bug with 1.9.2 Calling return within begin still executes else
  119
+      $stderr.puts "#{config['database']} already exists" unless config['adapter'] =~ /sqlite/
119 120
     end
120 121
   end
121 122
 

0 notes on commit fbf4bee

Please sign in to comment.
Something went wrong with that request. Please try again.