简体   繁体   中英

Rails: rake db:test:prepare Vs rake test:prepare

AS the guides, the command used to prepare test database is

bundle exec rake db:test:prepare

However, I have found that following command also works & created the test db for me.

bundle exec rake test:prepare

Wanted to know if this is a valid command, if yes. Where can I find the documentation.

tested on rails 3.2.8

According to github and the source code task 'test:prepare' => 'db:test:prepare' is mentioned at the bottom.

Hence it's a shortcut, wrapper, whatever you want to call it. Another question would be why this doesn't up when you do bundle exec rake -T but hey.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM