class CommonErrors

Public Class Methods

check_for_migration_error(body) click to toggle source
# 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