Can't decide which way to adopt going forward to save people who always execute the same commands on upgrade without checking the notes each time
Conversation
Avis
-
Statut de Eugen (gargron@mastodon.social) sur Sunday, 27-Dec-2020 08:18:14 CET
Eugen
-
Statut de Benjamin Sonntag-King 🐙 (vincib@mamot.fr) sur Sunday, 27-Dec-2020 08:18:14 CET
Benjamin Sonntag-King 🐙
@Gargron By the way, while upgrading mamot.fr, I wondered if my postgresql schema was up-to-date... I know rails should be doing migration properly, but what if I missed one some day for some obscure uncatched error? (eg I wonder if the "account_id" field is indexed in the "status") Is there an easy way to check the running schema?
-
Statut de Eugen (gargron@mastodon.social) sur Sunday, 27-Dec-2020 10:05:21 CET
Eugen
@vincib Every db:migrate runs all pending migrations, it’s unlikely you somehow missed some except the most recent ones. If you wanna go the hard way you can db:schema:dump and compare the generated db/schema.rb file using git, but I wouldn’t bother doing it unless you have real reasons to believe something is amiss.
-
Statut de Benjamin Sonntag-King 🐙 (vincib@mamot.fr) sur Sunday, 27-Dec-2020 10:05:21 CET
Benjamin Sonntag-King 🐙
@Gargron ok, thanks a lot for the tips. and thanks for mastodon of course 😎
-