diff options
author | Colin Curtin <colin@procore.com> | 2008-12-20 20:21:20 -0800 |
---|---|---|
committer | Colin Curtin <colin@procore.com> | 2008-12-20 20:21:20 -0800 |
commit | 0e121f9ed93ebb417cc63307aaaf47f8adfd220d (patch) | |
tree | 39530f289b38a5dd1b2e6b170dab2631c983aaf3 /railties/doc/guides/source/testing_rails_applications.txt | |
parent | b0187434bd7601a5b2e5f7afac99c964e566b9db (diff) | |
parent | a0d091a41604d709cf2b99c85dcf4ae3ee275b9c (diff) | |
download | rails-0e121f9ed93ebb417cc63307aaaf47f8adfd220d.tar.gz rails-0e121f9ed93ebb417cc63307aaaf47f8adfd220d.tar.bz2 rails-0e121f9ed93ebb417cc63307aaaf47f8adfd220d.zip |
Merge branch 'master' of git@github.com:lifo/docrails
Diffstat (limited to 'railties/doc/guides/source/testing_rails_applications.txt')
-rw-r--r-- | railties/doc/guides/source/testing_rails_applications.txt | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/railties/doc/guides/source/testing_rails_applications.txt b/railties/doc/guides/source/testing_rails_applications.txt index 57f8610063..cb77829fc1 100644 --- a/railties/doc/guides/source/testing_rails_applications.txt +++ b/railties/doc/guides/source/testing_rails_applications.txt @@ -229,15 +229,15 @@ NOTE: +db:test:prepare+ will fail with an error if db/schema.rb doesn't exists. ==== Rake Tasks for Preparing your Application for Testing ==== [grid="all"] ------------------------------------------------------------------------------------- -Tasks Description ------------------------------------------------------------------------------------- -+rake db:test:clone+ Recreate the test database from the current environment's database schema -+rake db:test:clone_structure+ Recreate the test databases from the development structure -+rake db:test:load+ Recreate the test database from the current +schema.rb+ -+rake db:test:prepare+ Check for pending migrations and load the test schema -+rake db:test:purge+ Empty the test database. ------------------------------------------------------------------------------------- +|------------------------------------------------------------------------------------ +|Tasks Description +|------------------------------------------------------------------------------------ +|+rake db:test:clone+ Recreate the test database from the current environment's database schema +|+rake db:test:clone_structure+ Recreate the test databases from the development structure +|+rake db:test:load+ Recreate the test database from the current +schema.rb+ +|+rake db:test:prepare+ Check for pending migrations and load the test schema +|+rake db:test:purge+ Empty the test database. +|------------------------------------------------------------------------------------ TIP: You can see all these rake tasks and their descriptions by running +rake \-\-tasks \-\-describe+ |