小编Nat*_*pec的帖子

db:test:clone,db:test:clone_structure,db:test:load和db:test:prepare有什么区别?

你不得不承认,对于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之间有什么区别?

这些任务有多相似(或不同)?

database unit-testing ruby-on-rails

72
推荐指数
2
解决办法
2万
查看次数

标签 统计

database ×1

ruby-on-rails ×1

unit-testing ×1