Module: TableStructure::Schema::Column
- Defined in:
- lib/table_structure/schema/column.rb,
lib/table_structure/schema/column/attrs.rb,
lib/table_structure/schema/column/schema.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.create(definition, options) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/table_structure/schema/column.rb', line 6 def self.create(definition, ) if definition.is_a?(Hash) Attrs.new(definition, ) else Schema.new(definition) end end |