Exception: Mack::Errors::UnrunMigrations
- Inherits:
-
StandardError
- Object
- StandardError
- Mack::Errors::UnrunMigrations
- Defined in:
- lib/errors.rb
Overview
Raised if there are migrations that need to be run before a task is performed.
Instance Method Summary collapse
-
#initialize(number) ⇒ UnrunMigrations
constructor
Taks the number of migrations that need to be run.
Constructor Details
#initialize(number) ⇒ UnrunMigrations
Taks the number of migrations that need to be run.
6 7 8 |
# File 'lib/errors.rb', line 6 def initialize(number) super("You currently have #{number} #{number == 1 ? "migration" : "migrations"} that #{number == 1 ? "needs" : "need"} to be run.") end |