Exception: SafeMigrations::UnsafeMigration

Inherits:
StandardError
  • Object
show all
Defined in:
lib/safe_migrations/errors.rb

Constant Summary collapse

GENERIC_BANNER =
File.read(File.join(File.dirname(__FILE__), "..", "..", "banner.txt"))

Instance Method Summary collapse

Constructor Details

#initialize(message = "") ⇒ UnsafeMigration

Returns a new instance of UnsafeMigration.



5
6
7
# File 'lib/safe_migrations/errors.rb', line 5

def initialize(message = "")
  super(GENERIC_BANNER + "\n#{message}\n")
end