remove versioning
This commit is contained in:
@@ -4,7 +4,6 @@ class Entry < ApplicationRecord
|
||||
|
||||
has_many :suggested_meanings, dependent: :destroy
|
||||
has_many :comments, as: :commentable, dependent: :destroy
|
||||
has_many :entry_versions, dependent: :destroy
|
||||
|
||||
enum :category, %i[word phrase proper_name title reference other]
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
class EntryVersion < ApplicationRecord
|
||||
belongs_to :entry
|
||||
belongs_to :user
|
||||
|
||||
validates :changes_made, presence: true
|
||||
end
|
||||
@@ -14,7 +14,6 @@ class User < ApplicationRecord
|
||||
class_name: "SuggestedMeaning",
|
||||
foreign_key: :reviewed_by_id,
|
||||
dependent: :nullify
|
||||
has_many :entry_versions, dependent: :nullify
|
||||
has_many :comments, dependent: :nullify
|
||||
|
||||
enum :role, %i[contributor reviewer admin]
|
||||
|
||||
Reference in New Issue
Block a user