diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-20 09:53:38 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-20 09:53:38 -0800 |
commit | 5503796096eb0edbe1ed554a6c8d3fdc98314231 (patch) | |
tree | d0cf42492944b5660a404cfa43cb5a302064d79a | |
parent | 74c2af5b91248565d0bd8174aec3f0737b79535c (diff) | |
parent | e470ebfe4f648984eb0e638a75ea8334ffd70a25 (diff) | |
download | rails-5503796096eb0edbe1ed554a6c8d3fdc98314231.tar.gz rails-5503796096eb0edbe1ed554a6c8d3fdc98314231.tar.bz2 rails-5503796096eb0edbe1ed554a6c8d3fdc98314231.zip |
Merge pull request #9005 from ranjaykrishna/dbcreate
added a db create rake task.
-rw-r--r-- | activerecord/Rakefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index 53ddff420e..0702063c60 100644 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -39,6 +39,10 @@ namespace :test do end end +namespace :db do + task :create => ['mysql:build_databases', 'postgresql:build_databases'] +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]+/] |