Sha256: 24c8ebc8fa1dddd9b65babc59eb2b6c566a6b223966b8d3d6d248da5516a50c7

Contents?: true

Size: 290 Bytes

Versions: 23

Compression:

Stored size: 290 Bytes

Contents

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

          include TimeValueFractional2

          def sqlserver_type
            "datetime2(#{precision.to_i})"
          end

        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
activerecord-sqlserver-adapter-5.0.3 lib/active_record/connection_adapters/sqlserver/type/datetime2.rb
activerecord-sqlserver-adapter-5.0.1 lib/active_record/connection_adapters/sqlserver/type/datetime2.rb
activerecord-sqlserver-adapter-5.0.0 lib/active_record/connection_adapters/sqlserver/type/datetime2.rb