price-point-api/app/models/moderation_log.rb

26 lines
693 B
Ruby
Raw Normal View History

2026-05-25 16:15:06 +00:00
# == 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)
#
2026-05-17 11:12:43 +00:00
class ModerationLog < ApplicationRecord
belongs_to :moderatable, polymorphic: true
belongs_to :admin
end