25 lines
693 B
Ruby
25 lines
693 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: moderation_logs
|
|
#
|
|
# id :bigint not null, primary key
|
|
# moderatable_type :string not null
|
|
# reason :string
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
# admin_id :integer not null
|
|
# moderatable_id :integer not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_moderation_logs_on_admin_id (admin_id)
|
|
# index_moderation_logs_on_moderatable (moderatable_type,moderatable_id)
|
|
#
|
|
# Foreign Keys
|
|
#
|
|
# fk_rails_... (admin_id => admins.id)
|
|
#
|
|
class ModerationLog < ApplicationRecord
|
|
belongs_to :moderatable, polymorphic: true
|
|
belongs_to :admin
|
|
end
|