diff --git a/lib/error_tracker/migration/sql_migrator.ex b/lib/error_tracker/migration/sql_migrator.ex index a12aeaa..8d5fa4a 100644 --- a/lib/error_tracker/migration/sql_migrator.ex +++ b/lib/error_tracker/migration/sql_migrator.ex @@ -24,7 +24,7 @@ defmodule ErrorTracker.Migration.SQLMigrator do initial = max(current_version(opts), initial_version) if initial >= opts.version do - change(migrator, initial..opts.version, :down, opts) + change(migrator, initial..opts.version//-1, :down, opts) end end