Skip to content

Commit

Permalink
Merge pull request #9 from badlamer/master
Browse files Browse the repository at this point in the history
Add missed no_op argument for migrator
  • Loading branch information
jasonfb authored Nov 17, 2021
2 parents 422abda + b80a594 commit 493ec6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/nonschema_migrator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def rollback(steps)
end

def move(direction, steps)
migrator = new_migrator(direction, migrations, schema_migration)
migrator = new_migrator(direction, migrations, nil, schema_migration)

if current_version != 0 && !migrator.current_migration
raise UnknownMigrationVersionError.new(current_version)
Expand All @@ -96,7 +96,7 @@ def up(target_version = nil)
migrations
end

new_migrator(:up, selected_migrations, target_version).migrate
new_migrator(:up, selected_migrations, nil, target_version).migrate
end

def down(target_version = nil)
Expand All @@ -106,7 +106,7 @@ def down(target_version = nil)
migrations
end

new_migrator(:down, selected_migrations, target_version).migrate
new_migrator(:down, selected_migrations, nil, target_version).migrate
end
end

Expand All @@ -130,7 +130,7 @@ def rollback(path, steps = 1)
end

def run(direction, path, target_version)
new_migrator(path, direction, context(path).migrations, target_version).run
new_migrator(path, direction, context(path).migrations, nil, target_version).run
end
end

Expand Down

0 comments on commit 493ec6c

Please sign in to comment.