about summary refs log tree commit diff
path: root/db/migrate
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2017-11-24 01:17:20 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2017-11-24 01:17:20 +0000
commit167fe2ab08288ce286f5c7660ff0ed587b65b988 (patch)
tree1a4c7d23cb3dd6993c0ce57a637a161e3405dba5 /db/migrate
parentfaad820458401b5a01f24d4da4bf2acf59ef440d (diff)
parente84fecb7e97851ed56f4d954e2d68128bb87da37 (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20171119172437_create_admin_action_logs.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20171119172437_create_admin_action_logs.rb b/db/migrate/20171119172437_create_admin_action_logs.rb
new file mode 100644
index 000000000..0c2b6c623
--- /dev/null
+++ b/db/migrate/20171119172437_create_admin_action_logs.rb
@@ -0,0 +1,12 @@
+class CreateAdminActionLogs < ActiveRecord::Migration[5.1]
+  def change
+    create_table :admin_action_logs do |t|
+      t.belongs_to :account, foreign_key: { on_delete: :cascade }
+      t.string :action, null: false, default: ''
+      t.references :target, polymorphic: true
+      t.text :recorded_changes, null: false, default: ''
+
+      t.timestamps
+    end
+  end
+end