You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class Annomark < ApplicationRecord |
|
acts_as_list column: :rank |
|
|
|
validates :name, :code, presence: true |
|
validates :code, uniqueness: { scope: %i[name] } |
|
|
|
has_many :annotation_annomarks, dependent: :destroy |
|
has_many :annotations, through: :annotation_annomarks |
|
end
|
|
|