Title: [1014] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake: Fix db:
create and db:drop by checking for presense of task, not by #respond_to?
- Revision
- 1014
- Author
- nicksieger
- Date
- 2008-06-04 15:04:54 -0400 (Wed, 04 Jun 2008)
Log Message
Fix db:create and db:drop by checking for presense of task, not by #respond_to?
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake (1013 => 1014)
--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake 2008-06-04 03:41:40 UTC (rev 1013)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc.rake 2008-06-04 19:04:54 UTC (rev 1014)
@@ -10,7 +10,7 @@
end
namespace :db do
- if respond_to?(:create_database)
+ if Rake::Task["db:create"]
redefine_task :create => :environment do
create_database(ActiveRecord::Base.configurations[RAILS_ENV])
end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel