对于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
我什至不知道结构和架构之间的区别。加载当前环境的架构和仅加载schema.rb有什么区别?
这些任务到底有多相似(或不同)?