你不得不承认,对于rails和数据库的新手,rubyonrails.org上的官方解释使得所有这四个任务听起来完全一样.引用:
rake db:test:clone Recreate the test database from
the current environment’s database schema
rake db:test:clone_structure Recreate the test database 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
Run Code Online (Sandbox Code Playgroud)
我甚至不知道结构和架构之间的区别.加载当前环境的架构和加载schema.rb之间有什么区别?
这些任务有多相似(或不同)?