db: add subject_id, subject_type columns to mod_actions.

The subject of the mod action is the post, user, or other object the modaction is for.
This commit is contained in:
evazion
2022-09-25 00:03:52 -05:00
parent 718c4d121b
commit 9026875776
2 changed files with 28 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
class AddSubjectToModActions < ActiveRecord::Migration[7.0]
def change
add_column :mod_actions, :subject_type, :string, null: true
add_column :mod_actions, :subject_id, :integer, null: true
add_index :mod_actions, :subject_type
add_index :mod_actions, :subject_id
end
end