Skip to content

Commit

Permalink
Fix Rails 6.0 build
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed Aug 4, 2019
1 parent 136b943 commit 1523397
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/orm/active_record.rb
Expand Up @@ -21,7 +21,10 @@ def silence_stream(stream)
if ActiveRecord::Migrator.respond_to? :migrate
ActiveRecord::Migrator.migrate File.expand_path('../../dummy_app/db/migrate/', __FILE__)
else
ActiveRecord::MigrationContext.new(File.expand_path('../../dummy_app/db/migrate/', __FILE__)).migrate
ActiveRecord::MigrationContext.new(
*([File.expand_path('../../dummy_app/db/migrate/', __FILE__)] +
(ActiveRecord::MigrationContext.instance_method(:initialize).arity == 2 ? [ActiveRecord::SchemaMigration] : [])),
).migrate
end
end

Expand Down

0 comments on commit 1523397

Please sign in to comment.