Class: DbSchema::Operations::AlterColumnType

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

Returns a new instance of AlterColumnType.



90
91
92
93
94
95
# File 'lib/db_schema/operations.rb', line 90

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



88
89
90
# File 'lib/db_schema/operations.rb', line 88

def name
  @name
end

#new_attributesObject (readonly)

Returns the value of attribute new_attributes.



88
89
90
# File 'lib/db_schema/operations.rb', line 88

def new_attributes
  @new_attributes
end

#new_typeObject (readonly)

Returns the value of attribute new_type.



88
89
90
# File 'lib/db_schema/operations.rb', line 88

def new_type
  @new_type
end

#usingObject (readonly)

Returns the value of attribute using.



88
89
90
# File 'lib/db_schema/operations.rb', line 88

def using
  @using
end