12 lines
295 B
Ruby
12 lines
295 B
Ruby
|
|
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
|