Module: SDL::Field::ColumnOptions
- Included in:
- Association::BelongsTo, Attribute, Enum
- Defined in:
- lib/sdl/field.rb
Instance Method Summary collapse
-
#default ⇒ Object
A default value for this field.
-
#index? ⇒ Boolean
Should this field have an index?.
-
#limit ⇒ Integer
A limit for the field.
-
#precision ⇒ Integer
A precision for the field.
-
#scale ⇒ Integer
A scale for the field.
-
#unique? ⇒ Boolean
Is this field unique?.
Instance Method Details
#default ⇒ Object
A default value for this field
123 124 125 |
# File 'lib/sdl/field.rb', line 123 def default [:default] end |
#index? ⇒ Boolean
Should this field have an index?
153 154 155 |
# File 'lib/sdl/field.rb', line 153 def index? .fetch(:index, false) end |
#limit ⇒ Integer
A limit for the field
129 130 131 |
# File 'lib/sdl/field.rb', line 129 def limit [:limit] end |
#precision ⇒ Integer
A precision for the field
135 136 137 |
# File 'lib/sdl/field.rb', line 135 def precision [:precision] end |
#scale ⇒ Integer
A scale for the field
141 142 143 |
# File 'lib/sdl/field.rb', line 141 def scale [:scale] end |
#unique? ⇒ Boolean
Is this field unique?
147 148 149 |
# File 'lib/sdl/field.rb', line 147 def unique? .fetch(:unique, false) end |