Class: ArCheckedMigration::Status
- Inherits:
-
Struct
- Object
- Struct
- ArCheckedMigration::Status
- Defined in:
- lib/ar_checked_migration/status.rb
Instance Attribute Summary collapse
-
#migrations ⇒ Object
Returns the value of attribute migrations.
-
#migrations_table ⇒ Object
Returns the value of attribute migrations_table.
Instance Method Summary collapse
Instance Attribute Details
#migrations ⇒ Object
Returns the value of attribute migrations
2 3 4 |
# File 'lib/ar_checked_migration/status.rb', line 2 def migrations @migrations end |
#migrations_table ⇒ Object
Returns the value of attribute migrations_table
2 3 4 |
# File 'lib/ar_checked_migration/status.rb', line 2 def migrations_table @migrations_table end |
Instance Method Details
#all ⇒ Object
4 5 6 7 8 |
# File 'lib/ar_checked_migration/status.rb', line 4 def all return all_down unless Migrations.table_exists?(migrations_table) @all ||= {down: down_migrations, up: up_migrations} end |
#down ⇒ Object
10 11 12 |
# File 'lib/ar_checked_migration/status.rb', line 10 def down all[:down] end |