Skip to content

Commit

Permalink
This conditions is required to work with database create task. 1.9.2 …
Browse files Browse the repository at this point in the history
…is having a bug with "Calling return within begin still executes else".
  • Loading branch information
arunagw committed Jul 21, 2011
1 parent ff05736 commit 8dc4745
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activerecord/lib/active_record/railties/databases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8dc4745

Please sign in to comment.