Class: Migflow::Models::MigrationSnapshot

Inherits:
Data
  • Object
show all
Defined in:
lib/migflow/models/migration_snapshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/migflow/models/migration_snapshot.rb', line 5

def name
  @name
end

#raw_contentObject (readonly)

Returns the value of attribute raw_content

Returns:

  • (Object)

    the current value of raw_content



5
6
7
# File 'lib/migflow/models/migration_snapshot.rb', line 5

def raw_content
  @raw_content
end

#tablesObject (readonly)

Returns the value of attribute tables

Returns:

  • (Object)

    the current value of tables



5
6
7
# File 'lib/migflow/models/migration_snapshot.rb', line 5

def tables
  @tables
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



5
6
7
# File 'lib/migflow/models/migration_snapshot.rb', line 5

def version
  @version
end

Instance Method Details

#find_table(name) ⇒ Object



10
11
12
# File 'lib/migflow/models/migration_snapshot.rb', line 10

def find_table(name)
  tables[name]
end

#table_namesObject



6
7
8
# File 'lib/migflow/models/migration_snapshot.rb', line 6

def table_names
  tables.keys.sort
end