EasyRecon/Hunt3r

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

Summary

Maintainability
A
0 mins
Test Coverage
class Platform < ApplicationRecord
  has_many :PlatformStat, dependent: :delete_all
  has_many :programs, dependent: :destroy

  validates :name, presence: true, uniqueness: { case_sensitive: false }

  before_save { name.downcase! }
end