Sha256: 72e0c0e62794fc98f7311890e0a05eb9515c4250d91a3e3bb52dd0505adf8a24

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 Bytes

Contents

class Unico::OccupationMainGroup < Unico::Model

  self.abstract_class = true
  self.table_name = :unico_occupation_main_groups

  belongs_to :occupation_group, class_name: '::OccupationGroup'
  has_many :occupation_subgroups, dependent: :restrict_with_exception

  def self.quoted_table_name
    '"unico_occupation_main_groups"'
  end

  def to_s
    "#{code} - #{name}"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unico-training-7.8.0 app/models/unico/occupation_main_group.rb