Sha256: 0b2f1984be3420778773f5c0953e94e80b03489163b5737da5838ddf8a0b2c86
Contents?: true
Size: 561 Bytes
Versions: 38
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module ConnectionAdapters module SQLServer module Type class SmallDateTime < DateTime def type :smalldatetime end def sqlserver_type "smalldatetime" end private def fast_string_to_time_format ::Time::DATE_FORMATS[:_sqlserver_datetime] end def apply_seconds_precision(value) value.change usec: 0 if value end end end end end end
Version data entries
38 entries across 38 versions & 1 rubygems