Class: ColdStorage::SchemaMirror::Change

Inherits:
Struct
  • Object
show all
Defined in:
lib/cold_storage/schema_mirror.rb

Overview

A single difference between the two schemas.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



21
22
23
# File 'lib/cold_storage/schema_mirror.rb', line 21

def detail
  @detail
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



21
22
23
# File 'lib/cold_storage/schema_mirror.rb', line 21

def name
  @name
end

#tableObject

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



21
22
23
# File 'lib/cold_storage/schema_mirror.rb', line 21

def table
  @table
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



21
22
23
# File 'lib/cold_storage/schema_mirror.rb', line 21

def type
  @type
end

Instance Method Details

#to_sObject



22
23
24
# File 'lib/cold_storage/schema_mirror.rb', line 22

def to_s
  [type, table, name, detail].compact.join(' ')
end