Class: Cequel::Schema::Patch::AddColumn
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- Cequel::Schema::Patch::AddColumn
- Defined in:
- lib/cequel/schema/patch.rb
Overview
Instance Attribute Summary collapse
- #column ⇒ Object readonly
Attributes inherited from AbstractChange
Instance Method Summary collapse
Methods inherited from AbstractChange
Instance Attribute Details
#column ⇒ Object (readonly)
119 120 121 |
# File 'lib/cequel/schema/patch.rb', line 119 def column @column end |
Instance Method Details
#to_cql ⇒ Object
121 122 123 |
# File 'lib/cequel/schema/patch.rb', line 121 def to_cql %Q|ALTER TABLE "#{table.name}" ADD #{column.to_cql}| end |