changed from 2.0 to 1.4.2

This commit is contained in:
jcrew99
2021-07-18 13:36:28 +10:00
parent 6d882b5016
commit 588e32966a
7 changed files with 7 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ OTR::ActiveRecord.migrations_paths = [File.join('core', 'main', 'ar-migrations')
OTR::ActiveRecord.configure_from_hash!(adapter:'sqlite3', database:':memory:')
# otr-activerecord require you to manually establish the connection with the following line
#Also a check to confirm that the correct Gem version is installed to require it, likely easier for old systems.
if Gem.loaded_specs['otr-activerecord'].version > Gem::Version.create('2.0')
if Gem.loaded_specs['otr-activerecord'].version > Gem::Version.create('1.4.2')
OTR::ActiveRecord.establish_connection!
end
ActiveRecord::Schema.verbose = false