Skip to content

Commit

Permalink
Remove Rails 5.1 conditional code to run migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyadsl committed Jan 15, 2020
1 parent 044190b commit d21f025
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/lib/spree/testing_support/dummy_app/rake_tasks.rb
Expand Up @@ -43,10 +43,8 @@ def initialize(gem_root:, lib_name:)
[path],
ActiveRecord::SchemaMigration
).migrate
elsif Rails.gem_version >= Gem::Version.new('5.2.0')
ActiveRecord::MigrationContext.new([path]).migrate
else
ActiveRecord::Migrator.migrate(path)
ActiveRecord::MigrationContext.new([path]).migrate
end
end

Expand Down

0 comments on commit d21f025

Please sign in to comment.