Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gab-social
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
gab
social
gab-social
Commits
c1213f41
Commit
c1213f41
authored
Jan 08, 2021
by
Fosco Marotto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[index] add index on reports.action_taken
parent
152e59a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
db/migrate/20210108123456_add_index_on_reports_action_taken.rb
...grate/20210108123456_add_index_on_reports_action_taken.rb
+7
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20210108123456_add_index_on_reports_action_taken.rb
0 → 100644
View file @
c1213f41
class
AddIndexOnReportsActionTaken
<
ActiveRecord
::
Migration
[
5.2
]
disable_ddl_transaction!
def
change
add_index
:reports
,
:action_taken
,
algorithm: :concurrently
end
end
db/schema.rb
View file @
c1213f41
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2021_01_0
3_150000
)
do
ActiveRecord
::
Schema
.
define
(
version:
2021_01_0
8_123456
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_stat_statements"
...
...
@@ -631,6 +631,7 @@ ActiveRecord::Schema.define(version: 2021_01_03_150000) do
t
.
bigint
"assigned_account_id"
t
.
string
"uri"
t
.
index
[
"account_id"
],
name:
"index_reports_on_account_id"
t
.
index
[
"action_taken"
],
name:
"index_reports_on_action_taken"
t
.
index
[
"target_account_id"
],
name:
"index_reports_on_target_account_id"
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment