EasyRecon/Hunt3r

View on GitHub
backend/app/models/provider.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Provider < ApplicationRecord
  validates :name, presence: true, uniqueness: { case_sensitive: false }

  before_save { self.name.downcase! }
end