Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-qa-sandbox-group
qa-test-2019-05-06-03-38-42-40f225278db2df81
add-member-project-38ac0d05ff9a6e41
Commits
3c4eff8c
Commit
3c4eff8c
authored
Sep 21, 2015
by
Kamil Trzcinski
Browse files
Fix taggings_idx
parent
8150cf25
Changes
2
Hide whitespace changes
Inline
Side-by-side
db/migrate/20150921081619_rename_taggings_idx.rb
0 → 100644
View file @
3c4eff8c
class
RenameTaggingsIdx
<
ActiveRecord
::
Migration
def
up
remove_index
:ci_taggings
,
name:
'taggings_idx'
add_index
:ci_taggings
,
[
:tag_id
,
:taggable_id
,
:taggable_type
,
:context
,
:tagger_id
,
:tagger_type
],
unique:
true
,
name:
'ci_taggings_idx'
end
end
db/schema.rb
View file @
3c4eff8c
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201509
14102123
)
do
ActiveRecord
::
Schema
.
define
(
version:
201509
21081619
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -168,7 +168,7 @@ ActiveRecord::Schema.define(version: 20150914102123) do
t
.
datetime
"created_at"
end
add_index
"ci_taggings"
,
[
"tag_id"
,
"taggable_id"
,
"taggable_type"
,
"context"
,
"tagger_id"
,
"tagger_type"
],
name:
"taggings_idx"
,
unique:
true
,
using: :btree
add_index
"ci_taggings"
,
[
"tag_id"
,
"taggable_id"
,
"taggable_type"
,
"context"
,
"tagger_id"
,
"tagger_type"
],
name:
"
ci_
taggings_idx"
,
unique:
true
,
using: :btree
add_index
"ci_taggings"
,
[
"taggable_id"
,
"taggable_type"
,
"context"
],
name:
"index_ci_taggings_on_taggable_id_and_taggable_type_and_context"
,
using: :btree
create_table
"ci_tags"
,
force:
true
do
|
t
|
...
...
@@ -221,7 +221,7 @@ ActiveRecord::Schema.define(version: 20150914102123) do
t
.
datetime
"updated_at"
end
add_index
"sessions"
,
[
"session_id"
],
name:
"index_sessions_on_session_id"
,
using: :btree
add_index
"sessions"
,
[
"updated_at"
],
name:
"index_sessions_on_updated_at"
,
using: :btree
add_index
"sessions"
,
[
"session_id"
],
name:
"index_
ci_
sessions_on_session_id"
,
using: :btree
add_index
"sessions"
,
[
"updated_at"
],
name:
"index_
ci_
sessions_on_updated_at"
,
using: :btree
end
Write
Preview
Supports
Markdown
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