Class: Cequel::Schema::Patch::SetTableProperties

Inherits:
AbstractChange show all
Defined in:
lib/cequel/schema/patch.rb

Overview

Since:

  • 1.0.0

Instance Attribute Summary

Attributes inherited from AbstractChange

#table

Instance Method Summary collapse

Methods inherited from AbstractChange

#==, #eql?, #inspect

Instance Method Details

#propertiesObject

Since:

  • 1.0.0



65
66
67
# File 'lib/cequel/schema/patch.rb', line 65

def properties
  table.properties.values
end

#to_cqlObject

Since:

  • 1.0.0



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