forked from e621ng/e621ng
14 lines
265 B
Ruby
14 lines
265 B
Ruby
# frozen_string_literal: true
|
|
|
|
class EditHistory < ApplicationRecord
|
|
self.table_name = 'edit_histories'
|
|
belongs_to :versionable, polymorphic: true
|
|
belongs_to :user
|
|
|
|
TYPE_MAP = {
|
|
comment: 'Comment',
|
|
forum: 'ForumPost',
|
|
blip: 'Blip'
|
|
}
|
|
end
|