I just want to collapse one version, but I donβt know the current version, is there a command to check it?
First, itβs worth the time to read the Rails Guide regarding migration . Then for your specific question:
... rollback of one version:
rake db:rollback STEP=1
... to see the current version:
rake db:version
VERSION , . "", . , db/migrate ( ). , .
VERSION
db/migrate
STEP, .
STEP
Migrations have a time stamp. It is safe to assume that the last timestamp is the current migration in most cases.
http://guides.rubyonrails.org/migrations.html#rolling-back
Source: https://habr.com/ru/post/1778088/More articles:How to display the first 3 elements in UL only when loading a document? - javascriptSimple objects in a PHP question [newbie] - objectNetbeans Color Issue - colorsDjango: Best way to simple hierarchy? - pythonWhat is the syntax for adding a panel to a viewport component? - extjsMemory leak in MyFaces - memory-leakschanging background color via jQuery AJAx? - javascriptProblem with h: form and p: ajax (Mojarra 2.0.2 and Primefaces 2.0.2) - ajaxWhy is the INSTEAD OF UPDATE insert table INSERTED empty? - sqlFind the physical path from Microsoft.Web.Administration and the root path to it - .netAll Articles