Sha256: 54b10b6124a5f8bba5398b49f1d634e9f29b95ff4a05057bc435548715d05617

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

module ActiveRecord
  module ConnectionAdapters
    module SQLServer
      module Type
        class SmallDateTime < DateTime


          private

          def cast_usec(value)
            0
          end

          def cast_usec_for_database(value)
            '.000'
          end

        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activerecord-sqlserver-adapter-4.2.6 lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb
activerecord-sqlserver-adapter-4.2.5 lib/active_record/connection_adapters/sqlserver/type/smalldatetime.rb