|
db/schema.rb is in the repository, so a fresh install loads it rather than
replaying migrations. db:setup and db:reset are safe; db:migrate is for an
existing installation.
The search_vector trigger is reinstalled by a db:schema:load hook and at
boot, so a fresh install needs nothing further. A restore from a dump that
predates the trigger needs pages:backfill_search_vector, now listed under
one-shot tasks.
The test database is no longer created by hand: Rails' db:test:prepare
drops and recreates it from database.yml.
|