Thanks Jesus. How about a video on managing migration files?
@JesusCastello3 жыл бұрын
I don't think you're supposed to touch them after you run the migrations & commit them to your git repo. Btw there is a command "rails migrate:db:status" that allows you to see which migrations have been run.
@jmcbri3 жыл бұрын
@@JesusCastello Thanks. I had read about "rails...status" recently. I think at some point, it makes sense to delete the migration files and do db:schema:load instead. I understand that would eliminate the ability to undo the migrations, but constructing the database by running 33 migrations seems, awkward, I guess.
@jmcbri3 жыл бұрын
PS, I think it is "rails db:migrate:status", not "rails migrate:db:status". Again, thanks.
@martincabo24774 жыл бұрын
Está buenísima la idea, pero me parece que si haces el vídeo en español quería un poco más claro... solo es una observación. Saludos!