Class: Cequel::Schema::Patch::RenameColumn
- Inherits:
-
AbstractChange
- Object
- AbstractChange
- Cequel::Schema::Patch::RenameColumn
- Defined in:
- lib/cequel/schema/patch.rb
Overview
Instance Attribute Summary collapse
- #new_name ⇒ Object readonly
- #old_name ⇒ Object readonly
Attributes inherited from AbstractChange
Instance Method Summary collapse
Methods inherited from AbstractChange
Instance Attribute Details
#new_name ⇒ Object (readonly)
137 138 139 |
# File 'lib/cequel/schema/patch.rb', line 137 def new_name @new_name end |
#old_name ⇒ Object (readonly)
137 138 139 |
# File 'lib/cequel/schema/patch.rb', line 137 def old_name @old_name end |
Instance Method Details
#to_cql ⇒ Object
139 140 141 |
# File 'lib/cequel/schema/patch.rb', line 139 def to_cql %Q|ALTER TABLE "#{table.name}" RENAME "#{old_name}" TO "#{new_name}"| end |