diff --git a/src/avram/migrator/runner.cr b/src/avram/migrator/runner.cr index 6e85f4fab..c5395b89c 100644 --- a/src/avram/migrator/runner.cr +++ b/src/avram/migrator/runner.cr @@ -201,7 +201,7 @@ class Avram::Migrator::Runner end private def sorted_migrations - self.class.migrations.sort_by(&.new.version) + self.class.migrations.sort_by(&.new.version.as(Int64)) end private def prepare_for_migration