fix attribute name conflict, add seeds from original document
This commit is contained in:
+1
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user