Sha256: 0092a23260c9b98b13e785705a02e270a115d060781692f822569d30d2527739

Contents?: true

Size: 656 Bytes

Versions: 2

Compression:

Stored size: 656 Bytes

Contents

require 'active_record'

ActiveRecord::Migration.verbose = false
ActiveRecord::Base.logger = Logger.new(nil)
case
when Rails.gem_version >= Gem::Version.new('6.0.0')
  ActiveRecord::MigrationContext.new(File.expand_path('../../dummy/db/migrate', __FILE__), ActiveRecord::SchemaMigration).migrate
when Rails.gem_version >= Gem::Version.new('5.2.0')
  ActiveRecord::MigrationContext.new(File.expand_path('../../dummy/db/migrate', __FILE__)).migrate
else
  ActiveRecord::Migrator.migrate(File.expand_path('../../dummy/db/migrate', __FILE__))
end

DatabaseCleaner[:active_record].strategy = :transaction
ORMInvalidRecordException = ActiveRecord::RecordInvalid

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise-security-0.16.0 test/orm/active_record.rb
devise-security-0.15.0 test/orm/active_record.rb