3 ms·
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-
by tony-vlcek 1y 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.
- benoau 1y 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.