Class: DbSchema::Changes::AlterColumnDefault

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, new_default:) ⇒ AlterColumnDefault

Returns a new instance of AlterColumnDefault.



350
351
352
353
# File 'lib/db_schema/changes.rb', line 350

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



348
349
350
# File 'lib/db_schema/changes.rb', line 348

def name
  @name
end

#new_defaultObject (readonly)

Returns the value of attribute new_default.



348
349
350
# File 'lib/db_schema/changes.rb', line 348

def new_default
  @new_default
end