Skip to content

Commit 632e14d

Browse files
committed
Fix MigrationContext
1 parent 90fad83 commit 632e14d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
config.before(:suite) do
1515
database_config = YAML.load(File.open("#{File.dirname(__FILE__)}/support/database.yml"))
1616
ActiveRecord::Base.establish_connection(database_config)
17-
if Gem::Version.new(ActiveRecord::VERSION::STRING) >= Gem::Version.new("5")
17+
if Gem::Version.new(ActiveRecord::VERSION::STRING) >= Gem::Version.new("5.2.0")
1818
ActiveRecord::MigrationContext.new("#{File.dirname(__FILE__)}/support/migrations").migrate
1919
end
2020
end

0 commit comments

Comments
 (0)