ActiveRecord::Migration.verbose = false

ActiveRecord::Migrator.migrate(File.expand_path('../../rails_app/db/migrate/', __FILE__))

ActiveRecord::Migration.verbose = false

migration_path = File.expand_path('../../rails_app/db/migrate/', __FILE__)
if ActiveRecord.version.release < Gem::Version.new('5.2.0')
  ActiveRecord::Migrator.migrate(migration_path)
else
  ActiveRecord::MigrationContext.new(migration_path).migrate
end

Fix specs on Rails 5.2
Fix specs on Rails 5.2
