Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
bartmr2795yWhy is this bad (seriously, I need to know)? I used TypeORM once, and since it didn't have any seeding feature, so I had to check if the process was in a dev machine and insert the seeds during migrations.
I actually think it gives you more stability, since you are "simulating" several migrations on top of old data, since the data inserted in the preceding migrations you wrote will be transformed by the more recent migrations. -
@bartmr in some cases (like this one) the seeding of the database, or to be more specific, creating model instances, can trigger events that want to write data to a table that not yet exists.
But actually the main reason for this post was ranting about developers calling themselves "full stack" but not knowing the basics of their frameworks ;) -
bartmr2795y@gmakkinga Yeah, that makes sense, specially in event driven services filled with multiple processes.
Related Rants
When your "full stack" colleague puts his seeders in migration files.
rant
short legged centipede
laravel
full stack