Class: DbSchema::Operations::AlterColumnDefault

Inherits:
Object
  • Object
show all
Defined in:
lib/db_schema/operations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, new_default:) ⇒ AlterColumnDefault

Returns a new instance of AlterColumnDefault.



114
115
116
117
# File 'lib/db_schema/operations.rb', line 114

def initialize(name, new_default:)
  @name        = name
  @new_default = new_default
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



112
113
114
# File 'lib/db_schema/operations.rb', line 112

def name
  @name
end

#new_defaultObject (readonly)

Returns the value of attribute new_default.



112
113
114
# File 'lib/db_schema/operations.rb', line 112

def new_default
  @new_default
end