Exception: ApiKeys::Errors::RestrictionsMigrationRequiredError
- Inherits:
-
BaseError
- Object
- StandardError
- BaseError
- ApiKeys::Errors::RestrictionsMigrationRequiredError
- Defined in:
- lib/api_keys/errors.rb
Overview
Raised when request restrictions are used but the restrictions column is missing
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ RestrictionsMigrationRequiredError
constructor
A new instance of RestrictionsMigrationRequiredError.
Constructor Details
#initialize(message = nil) ⇒ RestrictionsMigrationRequiredError
Returns a new instance of RestrictionsMigrationRequiredError.
75 76 77 78 79 80 81 |
# File 'lib/api_keys/errors.rb', line 75 def initialize( = nil) super( || "Request restrictions are configured but the `restrictions` database column is missing. " \ "Run: rails generate api_keys:add_restrictions && rails db:migrate" ) end |