Module: Redpear::Schema::ClassMethods
- Defined in:
- lib/redpear/schema.rb
Instance Method Summary collapse
- #column(*args) ⇒ Object
-
#columns ⇒ Redpear::Schema::Collection
The columns of this model.
- #index(*args) ⇒ Object
- #score(*args) ⇒ Object
Instance Method Details
#column(*args) ⇒ Object
12 13 14 15 16 |
# File 'lib/redpear/schema.rb', line 12 def column(*args) columns.store(Redpear::Schema::Column, self, *args).tap do |col| __define_attribute_accessors__(col) end end |
#columns ⇒ Redpear::Schema::Collection
Returns the columns of this model.
7 8 9 |
# File 'lib/redpear/schema.rb', line 7 def columns @columns ||= Redpear::Schema::Collection.new end |