Module: ActiveRecord::Type::CRDBExt
- Included in:
- ActiveRecord::Type
- Defined in:
- lib/active_record/connection_adapters/cockroachdb/type.rb
Instance Method Summary collapse
-
#adapter_name_from(model) ⇒ Object
Return :postgresql instead of :cockroachdb for current_adapter_name so we can continue using the ActiveRecord::Types defined in PostgreSQLAdapter.
Instance Method Details
#adapter_name_from(model) ⇒ Object
Return :postgresql instead of :cockroachdb for current_adapter_name so we can continue using the ActiveRecord::Types defined in PostgreSQLAdapter.
7 8 9 10 11 12 |
# File 'lib/active_record/connection_adapters/cockroachdb/type.rb', line 7 def adapter_name_from(model) name = super return :postgresql if name == :cockroachdb name end |