Class: DbSchema::Changes::AlterColumnType

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_type:, **new_attributes) ⇒ AlterColumnType

Returns a new instance of AlterColumnType.



327
328
329
330
331
# File 'lib/db_schema/changes.rb', line 327

def initialize(name, new_type:, **new_attributes)
  @name           = name
  @new_type       = new_type
  @new_attributes = new_attributes
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



325
326
327
# File 'lib/db_schema/changes.rb', line 325

def name
  @name
end

#new_attributesObject (readonly)

Returns the value of attribute new_attributes.



325
326
327
# File 'lib/db_schema/changes.rb', line 325

def new_attributes
  @new_attributes
end

#new_typeObject (readonly)

Returns the value of attribute new_type.



325
326
327
# File 'lib/db_schema/changes.rb', line 325

def new_type
  @new_type
end