Exception: Mack::Errors::UnrunMigrations

Inherits:
StandardError
  • Object
show all
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

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