module SDL::Field::ColumnOptions
Public Instance Methods
default()
click to toggle source
A default value for this field @return [Object]
# File lib/sdl/field.rb, line 123 def default options[:default] end
index?()
click to toggle source
Should this field have an index? @return [Boolean]
# File lib/sdl/field.rb, line 153 def index? options.fetch(:index, false) end
limit()
click to toggle source
A limit for the field @return [Integer]
# File lib/sdl/field.rb, line 129 def limit options[:limit] end
precision()
click to toggle source
A precision for the field @return [Integer]
# File lib/sdl/field.rb, line 135 def precision options[:precision] end
scale()
click to toggle source
A scale for the field @return [Integer]
# File lib/sdl/field.rb, line 141 def scale options[:scale] end
unique?()
click to toggle source
Is this field unique? @return [Boolean]
# File lib/sdl/field.rb, line 147 def unique? options.fetch(:unique, false) end