Is there good way to retrieve migration version number?
I need to implement a method in a model which behave differently on and beyond a specific migration version.
There's a much nicer way: rake db:migrate:status
rake db:migrate:status
up 20120530222941 Create shenanigans up 20120613030015 *** NO FILE ***
Indicating that I've deleted my latest migration file.
Or more simply:
> rake db:version Current version: 20120613030015