Exception: DatabaseCleaner::Safeguard::Error::UrlNotAllowed

Inherits:
DatabaseCleaner::Safeguard::Error show all
Defined in:
lib/database_cleaner/safeguard.rb

Instance Method Summary collapse

Constructor Details

#initializeUrlNotAllowed

Returns a new instance of UrlNotAllowed.


17
18
19
# File 'lib/database_cleaner/safeguard.rb', line 17

def initialize
  super("ENV['DATABASE_URL'] is set to a URL that is not on the allowlist. Please refer to https://github.com/DatabaseCleaner/database_cleaner#safeguards")
end