class Cequel::Schema::Patch::RenameColumn
Attributes
new_name[R]
old_name[R]
Public Instance Methods
to_cql()
click to toggle source
# File lib/cequel/schema/patch.rb, line 138 def to_cql %Q|ALTER TABLE "#{table.name}" RENAME "#{old_name}" TO "#{new_name}"| end
Protected Instance Methods
post_init(old_column, new_column)
click to toggle source
# File lib/cequel/schema/patch.rb, line 132 def post_init(old_column, new_column) @old_name, @new_name = old_column.name, new_column.name end
subclass_eql?(other)
click to toggle source
# File lib/cequel/schema/patch.rb, line 144 def subclass_eql?(other) other.old_name == old_name && other.new_name == new_name end