0
0
Fork 0

Add audit log entries for user roles (#19040)

* Refactor audit log schema

* Add audit log entries for user roles
This commit is contained in:
Eugen Rochko 2022-08-25 20:39:40 +02:00 committed by GitHub
parent 99aed9069d
commit 0396acf39e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 151 additions and 99 deletions

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_08_08_101323) do
ActiveRecord::Schema.define(version: 2022_08_24_164532) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -205,9 +205,11 @@ ActiveRecord::Schema.define(version: 2022_08_08_101323) do
t.string "action", default: "", null: false
t.string "target_type"
t.bigint "target_id"
t.text "recorded_changes", default: "", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "human_identifier"
t.string "route_param"
t.string "permalink"
t.index ["account_id"], name: "index_admin_action_logs_on_account_id"
t.index ["target_type", "target_id"], name: "index_admin_action_logs_on_target_type_and_target_id"
end