Class: CommonErrors
- Inherits:
-
Object
- Object
- CommonErrors
- Defined in:
- lib/nexmo_developer/lib/common_errors.rb
Class Method Summary collapse
Class Method Details
.check_for_migration_error(body) ⇒ Object
2 3 4 |
# File 'lib/nexmo_developer/lib/common_errors.rb', line 2 def self.check_for_migration_error(body) raise 'DB Migration is pending. Please run RAILS_ENV=development bin/rake db:migrate' if body&.downcase&.include?('migrations are pending') end |