Dovrai ammettere che, per un principiante di rail e database, la spiegazione ufficiale su rubyonrails.org fa sì che tutte e quattro queste attività suonino esattamente allo stesso modo. Codice:Qual è la differenza tra db: test: clone, db: test: clone_structure, db: test: load e db: test: preparare?
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
Non so nemmeno la differenza tra struttura e schema. E qual è la differenza tra il caricamento dello schema dell'ambiente corrente e il caricamento dello schema.rb?
Quanto simili (o diversi) sono questi compiti?
Bottom line: Sono tutti praticamente la stessa cosa. :-p – bricker
warning - Ho trovato che db: test: clone non ha copiato correttamente il nullability delle colonne dal mio database di sviluppo. Questo potrebbe essere un vecchio bug che è stato successivamente corretto, poiché l'ho trovato usando Rails 2.3.12. –