http://www.redmine.org/boards/2/topics/48738 mysql> SELECT CONVERT(version,UNSIGNED INTEGER) as last_migration FROM schema_migrations WHERE version NOT LIKE '%-%' ORDER BY last_migration DESC; +----------------+ | last_migration | +----------------+ | 20140228130325 | | 20131218183023 |

