Sha256: e8741125e82365bd18fc1d33d71615efce49343ad76022ed688c15514256562a

Contents?: true

Size: 385 Bytes

Versions: 3

Compression:

Stored size: 385 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 property macro.
#
# === Example
#
# property :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

3 entries across 3 versions & 1 rubygems

Version Path
og-0.21.0 lib/og/types.rb
og-0.21.2 lib/og/types.rb
og-0.22.0 lib/og/types.rb