Class: DbSchema::Operations::ColumnOperation
- Inherits:
-
Object
- Object
- DbSchema::Operations::ColumnOperation
- Defined in:
- lib/db_schema/operations.rb
Overview
Abstract base class for single-column toggle operations.
Direct Known Subclasses
AllowNull, DisallowNull, DropCheckConstraint, DropColumn, DropEnum, DropExtension
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.
50 51 52 |
# File 'lib/db_schema/operations.rb', line 50 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
48 49 50 |
# File 'lib/db_schema/operations.rb', line 48 def name @name end |