fix attribute name conflict, add seeds from original document

This commit is contained in:
2026-01-22 14:40:31 +01:00
parent c2436fab13
commit 5674e6b21a
6 changed files with 86 additions and 23 deletions
+1 -8
View File
@@ -6,14 +6,7 @@ class Entry < ApplicationRecord
has_many :comments, as: :commentable, dependent: :destroy
has_many :entry_versions, dependent: :destroy
enum category: {
word: 0,
phrase: 1,
name: 2,
title: 3,
reference: 4,
other: 5
}
enum :category, %i[word phrase proper_name title reference other]
validates :category, presence: true
end