Class: DbSchema::Operations::AlterColumnDefault
- Inherits:
-
Object
- Object
- DbSchema::Operations::AlterColumnDefault
- Defined in:
- lib/db_schema/operations.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#new_default ⇒ Object
readonly
Returns the value of attribute new_default.
Instance Method Summary collapse
-
#initialize(name, new_default:) ⇒ AlterColumnDefault
constructor
A new instance of AlterColumnDefault.
Constructor Details
#initialize(name, new_default:) ⇒ AlterColumnDefault
Returns a new instance of AlterColumnDefault.
115 116 117 118 |
# File 'lib/db_schema/operations.rb', line 115 def initialize(name, new_default:) @name = name @new_default = new_default end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
113 114 115 |
# File 'lib/db_schema/operations.rb', line 113 def name @name end |
#new_default ⇒ Object (readonly)
Returns the value of attribute new_default.
113 114 115 |
# File 'lib/db_schema/operations.rb', line 113 def new_default @new_default end |