Skip to content

Commit

Permalink
Merge pull request #55 from puzzle/bug/fix-rake-task
Browse files Browse the repository at this point in the history
bug/fix-rake-task
  • Loading branch information
Vakmeth authored Jan 29, 2025
2 parents 8cb5850 + ce2e209 commit 7ee1216
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tasks/wagons.rake
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ eval(File.read(wagonfile)) if File.exist?(wagonfile)"
task :abort_if_pending_migrations => :environment do
paths = wagons.collect(&:migrations_paths).flatten

context = ActiveRecord::MigrationContext.new(paths, ActiveRecord::SchemaMigration)
context = ActiveRecord::MigrationContext.new(paths)
pending_migrations = ActiveRecord::Migrator.new(
:up,
context.migrations,
ActiveRecord::SchemaMigration,
InternalMetadata.new(ActiveRecord::Tasks::DatabaseTasks.migration_connection_pool)
context.schema_migration,
context.internal_metadata
).pending_migrations

if pending_migrations.any?
Expand Down

0 comments on commit 7ee1216

Please sign in to comment.