Determine the current migration/schema version in Rails
January 4th, 2008
I’ve been searching for this solution off and on for a while. There are some features that we don’t want to turn on until the database is migrated past a certain point. It’s pretty rare, but it has come up a few times, so I wanted to document the solution here.
ActiveRecord::Migrator.current_version
Thanks to Jay Fields for the answer. He is a wealth of great information!

Sorry, comments are closed for this article.