Module: ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields
- Defined in:
- lib/active_record/connection_adapters/mysql_adapter.rb
Defined Under Namespace
Classes: Boolean, Date, DateTime, Decimal, Float, Identity, Integer, Time, Type
Constant Summary collapse
- TYPES =
{}
Class Method Summary collapse
- .alias_type(new, old) ⇒ Object
-
.register_type(type_id, type) ⇒ Object
Register an MySQL
type_id
with a typcasting object intype
.
Class Method Details
.alias_type(new, old) ⇒ Object
391 392 393 |
# File 'lib/active_record/connection_adapters/mysql_adapter.rb', line 391 def self.alias_type(new, old) TYPES[new] = TYPES[old] end |
.register_type(type_id, type) ⇒ Object
Register an MySQL type_id
with a typcasting object in type
.
387 388 389 |
# File 'lib/active_record/connection_adapters/mysql_adapter.rb', line 387 def self.register_type(type_id, type) TYPES[type_id] = type end |