Regen

Clear the loaded fixtures, regenerate the fixture files, and load them again.

Syntax

$ vela fixtures regen

Unlike reset, this rewrites the files in data/fixtures from the current database schema first. Reach for it after changing a model, when the existing fixtures no longer match the collections.

Options

  • -c, --count <count> - Number of records per collection, between 1 and 999. Defaults to 10.
  • -s, --seed <seed> - Integer seed for deterministic output
$ vela fixtures regen --count 25 --seed 7