Skip to content

Commit

Permalink
fix(Rake): fix rake task by remove passed argument to MigrationContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakmeth committed Jan 23, 2025
1 parent 0740b67 commit f07de89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ GEM
activesupport (>= 3.1)
seed-fu-ndo (0.0.3)
seed-fu (>= 2.2.0)
sqlite3 (1.7.3)
sqlite3 (2.5.0)
mini_portile2 (~> 2.8.0)
stringio (3.1.2)
thor (1.3.2)
Expand All @@ -204,7 +204,7 @@ DEPENDENCIES
net-smtp
open4
rails-controller-testing
sqlite3 (~> 1.4)
sqlite3 (~> 2.1)
wagons!

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/wagons.rake
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace :db do
Rake::Task[:'db:_dump'].clear_actions

task :_dump do
context = ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths, ActiveRecord::SchemaMigration)
context = ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths)
migrated = Set.new(context.get_all_versions)
if migrated.size > context.migrations.size
puts "The database schema will not be dumped when there are loaded wagon migrations."
Expand Down
2 changes: 1 addition & 1 deletion test/dummy/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gem 'wagons', :path => File.expand_path(__FILE__).split("test#{File::SEPARATOR}d

group :development, :test do
gem 'net-smtp'
gem 'sqlite3', '~> 1.4'
gem 'sqlite3', '~> 2.1'
end

group :test do
Expand Down
2 changes: 1 addition & 1 deletion wagons.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ Gem::Specification.new do |s|
s.add_dependency 'concurrent-ruby', '< 1.3.5'

s.add_development_dependency 'open4'
s.add_development_dependency 'sqlite3', '~> 1.4'
s.add_development_dependency 'sqlite3', '~> 2.1'
end

0 comments on commit f07de89

Please sign in to comment.