Class: ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::DateTime
- Inherits:
-
Type
- Object
- Type
- ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::DateTime
- Defined in:
- lib/active_record/connection_adapters/mysql_adapter.rb
Instance Method Summary collapse
Methods inherited from Type
Instance Method Details
#type ⇒ Object
331 |
# File 'lib/active_record/connection_adapters/mysql_adapter.rb', line 331 def type; :datetime; end |
#type_cast(value) ⇒ Object
333 334 335 336 337 338 339 |
# File 'lib/active_record/connection_adapters/mysql_adapter.rb', line 333 def type_cast(value) return if value.nil? # FIXME: probably we can improve this since we know it is mysql # specific ConnectionAdapters::Column.string_to_time value end |