I have 4 different git repositories, one local and three deployed on Heroku.
I'm looking for a fast way to check differencies in the schema.rb
file, in case a migration or db reset has been forgotten in any of the apps.
I assume that basing on the solution given in this SO question I would be able to fast check this difference? git diff ref1:path/to/file1 ref2:path/to/file2
I have named the remote repositories, i.e. remote_1, remote_2 etc.
I'm unsure though how to apply remote-names + path to get it right on Heroku, any advice on how the correct git command would look like with the above setup?