Class: Cequel::Schema::Patch::SetTableProperties
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- Cequel::Schema::Patch::SetTableProperties
- Defined in:
- lib/cequel/schema/patch.rb
Overview
Instance Attribute Summary
Attributes inherited from AbstractChange
Instance Method Summary collapse
Methods inherited from AbstractChange
Instance Method Details
#properties ⇒ Object
65 66 67 |
# File 'lib/cequel/schema/patch.rb', line 65 def properties table.properties.values end |
#to_cql ⇒ Object
61 62 63 |
# File 'lib/cequel/schema/patch.rb', line 61 def to_cql %Q|ALTER TABLE "#{table.name}" WITH #{properties.map(&:to_cql).join(' AND ')}| end |