Module: MassiveRecord::ORM::Schema::TableInterface
- Extended by:
- ActiveSupport::Concern
- Included in:
- Table
- Defined in:
- lib/massive_record/orm/schema/table_interface.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#add_field_to_column_family(*args) ⇒ Object
Same as defined in class method, but also sets the default value in current object it was called from.
Instance Method Details
#add_field_to_column_family(*args) ⇒ Object
Same as defined in class method, but also sets the default value in current object it was called from.
105 106 107 108 109 |
# File 'lib/massive_record/orm/schema/table_interface.rb', line 105 def add_field_to_column_family(*args) new_field = self.class.add_field_to_column_family(*args) method = "#{new_field.name}=" send(method, new_field.default) if respond_to? method end |