Class: DbSchema::Operations::RenameOperation
- Inherits:
-
Object
- Object
- DbSchema::Operations::RenameOperation
- Defined in:
- lib/db_schema/operations.rb
Overview
Abstract base class for rename operations.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#new_name ⇒ Object
readonly
Returns the value of attribute new_name.
-
#old_name ⇒ Object
readonly
Returns the value of attribute old_name.
Instance Method Summary collapse
-
#initialize(old_name:, new_name:) ⇒ RenameOperation
constructor
A new instance of RenameOperation.
Constructor Details
#initialize(old_name:, new_name:) ⇒ RenameOperation
Returns a new instance of RenameOperation.
8 9 10 11 |
# File 'lib/db_schema/operations.rb', line 8 def initialize(old_name:, new_name:) @old_name = old_name @new_name = new_name end |
Instance Attribute Details
#new_name ⇒ Object (readonly)
Returns the value of attribute new_name.
6 7 8 |
# File 'lib/db_schema/operations.rb', line 6 def new_name @new_name end |
#old_name ⇒ Object (readonly)
Returns the value of attribute old_name.
6 7 8 |
# File 'lib/db_schema/operations.rb', line 6 def old_name @old_name end |