Class: Migflow::Models::MigrationSnapshot
- Inherits:
-
Data
- Object
- Data
- Migflow::Models::MigrationSnapshot
- Defined in:
- lib/migflow/models/migration_snapshot.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#raw_content ⇒ Object
readonly
Returns the value of attribute raw_content.
-
#tables ⇒ Object
readonly
Returns the value of attribute tables.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
5 6 7 |
# File 'lib/migflow/models/migration_snapshot.rb', line 5 def name @name end |
#raw_content ⇒ Object (readonly)
Returns the value of attribute raw_content
5 6 7 |
# File 'lib/migflow/models/migration_snapshot.rb', line 5 def raw_content @raw_content end |
#tables ⇒ Object (readonly)
Returns the value of attribute tables
5 6 7 |
# File 'lib/migflow/models/migration_snapshot.rb', line 5 def tables @tables end |
#version ⇒ Object (readonly)
Returns the value of attribute 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_names ⇒ Object
6 7 8 |
# File 'lib/migflow/models/migration_snapshot.rb', line 6 def table_names tables.keys.sort end |