Skip to main content

Module tasks

Module tasks 

Source
Expand description

Database task orchestration (Rails db:reset/db:setup/db:prepare), composing the schema/seed primitives.

Functionsยง

drop_all_tables
Drop every user table in a SQLite database.
prepare
db:prepare โ€” load schema only if the database has no user tables yet (idempotent).
reset
db:reset โ€” drop everything, then load schema.
setup
db:setup โ€” load schema, then run the seeder.