Get Current Version
mccormjt opened this issue · 3 comments
mccormjt commented
This is fairly simple, but it would be nice to see which version you are on. Could be useful if you are tinkering around. Something like -> Migrations.currentVersion()
mccormjt commented
great thanks!
sungwoncho commented
How about storing the history of the migration in the db? Rails does this by storing the timestamps of migrations already run and I think it's quite useful.
That way, I don't have to try to run Migrations.getVersion
on the server side every time I need to check the current migration version.
Update
Never mind, it already does in db.migrations