Sha256: 7b7fce64ed04b5195fb03f9f6d8ca5705a59f51edfca94f6d9a25e92d849e620
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
module ActiveRecord module Type class << self # Return :postgresql instead of :cockroachdb for current_adapter_name so # we can continue using the ActiveRecord::Types defined in # PostgreSQLAdapter. def adapter_name_from(model) name = model.connection_db_config.adapter.to_sym return :postgresql if name == :cockroachdb name end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-cockroachdb-adapter-7.0.3 | lib/active_record/connection_adapters/cockroachdb/type.rb |