diff --git a/test/orm/active_record.rb b/test/orm/active_record.rb index 61898a34..8adc1889 100644 --- a/test/orm/active_record.rb +++ b/test/orm/active_record.rb @@ -1,7 +1,7 @@ ActiveRecord::Migration.verbose = false ActiveRecord::Base.logger = Logger.new(nil) -if ActiveRecord::VERSION >= 7 +if ActiveRecord::VERSION::MAJOR >= 7 ActiveRecord::MigrationContext.new( File.expand_path('../../rails_app/db/migrate/', __FILE__) ).migrate