Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4807fa3c
Commit
4807fa3c
authored
Mar 31, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove index from application_settings uuid column
parent
237e48a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
db/migrate/20170328010804_add_uuid_to_application_settings.rb
...igrate/20170328010804_add_uuid_to_application_settings.rb
+0
-2
db/schema.rb
db/schema.rb
+0
-2
No files found.
db/migrate/20170328010804_add_uuid_to_application_settings.rb
View file @
4807fa3c
...
...
@@ -7,12 +7,10 @@ class AddUuidToApplicationSettings < ActiveRecord::Migration
def
up
add_column
:application_settings
,
:uuid
,
:string
add_concurrent_index
:application_settings
,
:uuid
execute
(
"UPDATE application_settings SET uuid =
#{
quote
(
SecureRandom
.
uuid
)
}
"
)
end
def
down
remove_index
:application_settings
,
:uuid
if
index_exists?
(
:application_settings
,
:uuid
)
remove_column
:application_settings
,
:uuid
end
end
db/schema.rb
View file @
4807fa3c
...
...
@@ -132,8 +132,6 @@ ActiveRecord::Schema.define(version: 20170328010804) do
t
.
string
"uuid"
end
add_index
"application_settings"
,
[
"uuid"
],
name:
"index_application_settings_on_uuid"
,
using: :btree
create_table
"approvals"
,
force: :cascade
do
|
t
|
t
.
integer
"merge_request_id"
,
null:
false
t
.
integer
"user_id"
,
null:
false
...
...
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