summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-06-18 04:05:19 +0000
committerThong Kuah <tkuah@gitlab.com>2019-06-18 04:05:19 +0000
commitb6cc32b0e01c268a6f89223e3fa2ca46a3234155 (patch)
treef58e2afd78078ac6d94d419d066e0ab2e59ba8a3 /db/schema.rb
parentfc1fcba6077edc0bee33aa3030145c53af109315 (diff)
parenta8ae921d99cb187226edfec4b075b0c01e83330a (diff)
downloadgitlab-ce-b6cc32b0e01c268a6f89223e3fa2ca46a3234155.tar.gz
Merge branch 'ashmckenzie/add-created-at-index-to-events' into 'master'
Add index to events and audit_events tables Closes gitlab-com/Product#309 See merge request gitlab-org/gitlab-ce!29194
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 6098ebc2a78..b003fdd5a9b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -335,6 +335,7 @@ ActiveRecord::Schema.define(version: 20190613030606) do
t.text "details"
t.datetime "created_at"
t.datetime "updated_at"
+ t.index ["created_at", "author_id"], name: "analytics_index_audit_events_on_created_at_and_author_id", using: :btree
t.index ["entity_id", "entity_type"], name: "index_audit_events_on_entity_id_and_entity_type", using: :btree
end
@@ -1219,6 +1220,7 @@ ActiveRecord::Schema.define(version: 20190613030606) do
t.string "target_type"
t.index ["action"], name: "index_events_on_action", using: :btree
t.index ["author_id", "project_id"], name: "index_events_on_author_id_and_project_id", using: :btree
+ t.index ["created_at", "author_id"], name: "analytics_index_events_on_created_at_and_author_id", using: :btree
t.index ["project_id", "created_at"], name: "index_events_on_project_id_and_created_at", using: :btree
t.index ["project_id", "id"], name: "index_events_on_project_id_and_id", using: :btree
t.index ["target_type", "target_id"], name: "index_events_on_target_type_and_target_id", using: :btree