Class: Cequel::Schema::Patch
- Inherits:
-
Object
- Object
- Cequel::Schema::Patch
- Extended by:
- Forwardable
- Defined in:
- lib/cequel/schema/patch.rb
Overview
The set of changes needed to transform a table from its current form to a desired form. ‘Patch`es are immutable.
Defined Under Namespace
Classes: AbstractChange, AddColumn, AddIndex, DropIndex, RenameColumn, SetTableProperties
Instance Attribute Summary collapse
- #changes ⇒ Object readonly
Instance Method Summary collapse
Instance Attribute Details
#changes ⇒ Object (readonly)
15 16 17 |
# File 'lib/cequel/schema/patch.rb', line 15 def changes @changes end |
Instance Method Details
#statements ⇒ Object
19 20 21 |
# File 'lib/cequel/schema/patch.rb', line 19 def statements changes.map(&:to_cql) end |