class TagVersion < ApplicationRecord
  include VersionRecord

  belongs_to :tag

  enum :category, { deerjikist: 'deerjikist',
                    meme: 'meme',
                    character: 'character',
                    general: 'general',
                    material: 'material',
                    meta: 'meta' }, validate: true

  validates :name, presence: true
  validates :category, presence: true
end
