1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add description for db:create and db:drop test tasks in AR

This will help identify these tasks exists, since they are easier to
setup things for running all AR tests.
This commit is contained in:
Carlos Antonio da Silva 2013-11-17 14:25:54 -02:00
parent fbcd46b1a0
commit ea76386493

View file

@ -39,8 +39,10 @@ namespace :test do
end end
namespace :db do namespace :db do
task :create => ['mysql:build_databases', 'postgresql:build_databases'] desc 'Build MySQL and PostgreSQL test databases'
task :drop => ['mysql:drop_databases', 'postgresql:drop_databases'] task create: ['mysql:build_databases', 'postgresql:build_databases']
desc 'Drop MySQL and PostgreSQL test databases'
task drop: ['mysql:drop_databases', 'postgresql:drop_databases']
end end
%w( mysql mysql2 postgresql sqlite3 sqlite3_mem firebird db2 oracle sybase openbase frontbase jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb ).each do |adapter| %w( mysql mysql2 postgresql sqlite3 sqlite3_mem firebird db2 oracle sybase openbase frontbase jdbcmysql jdbcpostgresql jdbcsqlite3 jdbcderby jdbch2 jdbchsqldb ).each do |adapter|