Permalink
Browse files

added rake db:create that executes mysql:build_databases and postgres…

…ql:build_databases
  • Loading branch information...
1 parent 760b8d3 commit 9f789364b2921f7ec1bd7887d6fb9e0d216a8792 @ranjaykrishna ranjaykrishna committed Jan 20, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 activerecord/Rakefile
@@ -39,6 +39,15 @@ namespace :test do
end
end
+namespace :db do
+ task :create do
+ puts "*** creating mysql databases now ***"
+ Rake::Task['mysql:build_databases'].execute
+ puts "*** creating postgresql databases now ***"
+ Rake::Task['postgresql:build_databases'].execute
+ end
+end
+
%w( mysql mysql2 postgresql sqlite3 sqlite3_mem firebird db2 oracle sybase openbase frontbase jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb ).each do |adapter|
Rake::TestTask.new("test_#{adapter}") { |t|
adapter_short = adapter == 'db2' ? adapter : adapter[/^[a-z0-9]+/]

0 comments on commit 9f78936

Please sign in to comment.