diff options
author | Ranjay Krishna <rak248@cornell.edu> | 2013-01-20 09:41:49 -0800 |
---|---|---|
committer | Ranjay Krishna <rak248@cornell.edu> | 2013-01-20 09:41:49 -0800 |
commit | 9f789364b2921f7ec1bd7887d6fb9e0d216a8792 (patch) | |
tree | 5e518179bf35c1c119d45cf6ae9f42ef19d75cbc /activerecord/Rakefile | |
parent | 760b8d37d4628a26642d4efa571eaf104880a0ea (diff) | |
download | rails-9f789364b2921f7ec1bd7887d6fb9e0d216a8792.tar.gz rails-9f789364b2921f7ec1bd7887d6fb9e0d216a8792.tar.bz2 rails-9f789364b2921f7ec1bd7887d6fb9e0d216a8792.zip |
added rake db:create that executes mysql:build_databases and postgresql:build_databases
Diffstat (limited to 'activerecord/Rakefile')
-rw-r--r-- | activerecord/Rakefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index 53ddff420e..55e3f7d83d 100644 --- a/activerecord/Rakefile +++ b/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]+/] |