Class: DbSchema::Changes::ColumnOperation
- Inherits:
-
Object
- Object
- DbSchema::Changes::ColumnOperation
- Defined in:
- lib/db_schema/changes.rb
Overview
Abstract base class for single-column toggle operations.
Direct Known Subclasses
AllowNull, CreatePrimaryKey, DisallowNull, DropCheckConstraint, DropColumn, DropEnum, DropExtension, DropIndex, DropPrimaryKey
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ ColumnOperation
constructor
A new instance of ColumnOperation.
Constructor Details
#initialize(name) ⇒ ColumnOperation
Returns a new instance of ColumnOperation.
281 282 283 |
# File 'lib/db_schema/changes.rb', line 281 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
279 280 281 |
# File 'lib/db_schema/changes.rb', line 279 def name @name end |