Class: OTR::ActiveRecord::Shim

Inherits:
ShimBase
  • Object
show all
Defined in:
lib/otr-activerecord/shim/v6.rb,
lib/otr-activerecord/shim/v7.rb,
lib/otr-activerecord/shim/v8.rb

Overview

Compatibility layer for ActiveRecord 8

Instance Method Summary collapse

Methods inherited from ShimBase

#force_db_test_env?, #migration_base_class_name, #migrations_path, #migrations_paths

Constructor Details

#initializeShim

Returns a new instance of Shim.



7
8
9
# File 'lib/otr-activerecord/shim/v6.rb', line 7

def initialize
  ::ActiveRecord::Base.default_timezone = :utc
end