You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in dashboard, the migrations for the database have become bloated and difficult to handle. We should refactor these into a more usable form to coincide with our transition to PostgreSQL from SQLite.
The text was updated successfully, but these errors were encountered:
Is this much of an issue? I think this can get quite counterproductive and might break things.
Db migrations are like git commits for a schema of a database, and mostly you don't really need to actually read them unless you are looking for where a specific thing was added. Like git commit history, it's fine to leave them alone and the filenames have dates on them so they sort quite nicely.
If you're worried about the performance you should really use rake db:schema:load which loads your entire schema in one go instead of rake db:migrate which applies each migration one by one which takes quite a while considering the number of files here. See this article for some more detail on this.
A place where you can try this can be the rails Dockerfile replacing rake db:migrate with rake db:schema:load
Currently in dashboard, the migrations for the database have become bloated and difficult to handle. We should refactor these into a more usable form to coincide with our transition to PostgreSQL from SQLite.
The text was updated successfully, but these errors were encountered: