unepwcmc/SAPI

View on GitHub
app/models/nomenclature_change/legislation_reassignment.rb

Summary

Maintainability
A
0 mins
Test Coverage
# == Schema Information
#
# Table name: nomenclature_change_reassignments
#
#  id                           :integer          not null, primary key
#  nomenclature_change_input_id :integer          not null
#  type                         :string(255)      not null
#  reassignable_type            :string(255)
#  reassignable_id              :integer
#  note_en                      :text
#  note_es                      :text
#  note_fr                      :text
#  internal_note                :text
#  created_by_id                :integer          not null
#  updated_by_id                :integer          not null
#  created_at                   :datetime         not null
#  updated_at                   :datetime         not null
#

# Reassignable is legislation that is assigned to a new taxon concept
class NomenclatureChange::LegislationReassignment < NomenclatureChange::Reassignment
  belongs_to :input, class_name: 'NomenclatureChange::Input',
    inverse_of: :legislation_reassignments,
    foreign_key: :nomenclature_change_input_id
end