top | item 45662050

(no title)

tony-vlcek | 4 months ago

Also 2, as part of migrations:

There 3 types of migration files/scripts: structure, basic-data, dummy-data.

structure - new table, add column goes here basic-data - e.g. default config values go here dummy-data - gets used on local and stating

Run migrations with a flag to include the dummy-data migrations.

discuss

order

benoau|4 months ago

+1 for this approach.

The big benefit here is not just your staging database, but everybody's locally running databases also get prepopulated data which is really useful for development and testing.