I have folder with migrations. I accidentally deleted most of the migrations, only few left. How to restore only delete migrations from the last commit without overwriting current files ? Or just restore migration folder? I the could edit them once more. Folder is app/models.
git checkout -- app/models will revert any changes made to
app/models since the last commit, including restoring the files you deleted.