Class: ArCheckedMigration::Runner
- Inherits:
-
Object
- Object
- ArCheckedMigration::Runner
- Defined in:
- lib/ar_checked_migration/runner.rb
Class Attribute Summary collapse
Class Method Summary collapse
Class Attribute Details
.migrations ⇒ Object
10 11 12 |
# File 'lib/ar_checked_migration/runner.rb', line 10 def migrations @migrations || raise("You must give an ActiveRecord::MigrationProxy array") end |
.table_name ⇒ Object
14 15 16 |
# File 'lib/ar_checked_migration/runner.rb', line 14 def table_name @table_name || raise("You must specify the schema migrations table_name") end |
Class Method Details
.safe? ⇒ Boolean
18 19 20 21 22 23 |
# File 'lib/ar_checked_migration/runner.rb', line 18 def safe? status = Status.new(migrations, table_name) checker = Checker.new(status) checker.safe? end |