grantcallendar/app/models/company_activity.rb

24 lines
919 B
Ruby

# frozen_string_literal: true
# CompanyActivity
class CompanyActivity < ApplicationRecord
default_scope { order(prio: :asc) }
# == Constants ============================================================
# == Attributes ===========================================================
# == Extensions ===========================================================
# == Relationships ========================================================
# == Validations ==========================================================
validates :name, presence: true
# == Scopes ===============================================================
scope :by_ids, ->(val) { where(id: val) }
# == Callbacks ============================================================
# == Class Methods ========================================================
# == Instance Methods =====================================================
end