Sha256: 40c9c3fe34176a60bb0172a1959d2036b32d8ce12c858d22524ea96cb5abaca1
Contents?: true
Size: 391 Bytes
Versions: 2
Compression:
Stored size: 391 Bytes
Contents
module Og # Some useful type macros to help when defining properties. # You can easily code your own type macros. Just return the # array that should be passed to the attr_xxx macros. # # === Example # # attr_accessor :name, VarChar(30) def self.VarChar(size) return String, :sql => "VARCHAR(#{size})" end NotNull = { :sql => 'NOT NULL' }.freeze Null = { :sql => 'NULL' }.freeze end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
og-0.41.0 | lib/og/types.rb |
og-0.40.0 | lib/og/types.rb |