Sha256: 2d4f0caff61bba669a1be22ffb33bb633aa3e7136c2e3ee1442dde8772f660ca
Contents?: true
Size: 471 Bytes
Versions: 2
Compression:
Stored size: 471 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/events" module Renalware module Events class Category < ApplicationRecord self.table_name = "event_categories" acts_as_paranoid has_many :types, dependent: :nullify, inverse_of: :category, class_name: "Renalware::Events::Type" validates :name, presence: true, uniqueness: true def to_s name end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.1.1 | app/models/renalware/events/category.rb |
renalware-core-2.1.0 | app/models/renalware/events/category.rb |