This post originated from an RSS feed registered with Ruby Buzz
by Matthew Bass.
Original Post: Show database migration versions with Rake
Feed Title: Pelargir
Feed URL: http://feeds.feedburner.com/pelargir/
Feed Description: Musings on software and life from Matthew Bass. Regular posts on new web products, tips and tricks, etc.
Something I frequently need to do when deploying a Rails application is determine the current migration version of a database. In the past, I’ve done this by bringing up mySQL and typing:
SELECT version FROM schema_info
Well, I’m finally tired of doing that so I cooked up this Rake task:
namespace :db do
desc "Print current database migration version [...]