testy/db/migrate/20260517111111_create_moderation_logs.rb

12 lines
295 B
Ruby
Raw Normal View History

2026-05-17 11:12:43 +00:00
class CreateModerationLogs < ActiveRecord::Migration[8.0]
def change
create_table :moderation_logs do |t|
t.string :reason
t.references :moderatable, polymorphic: true, null: false
t.references :admin, null: false, foreign_key: true
t.timestamps
end
end
end