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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
dd74237d
Commit
dd74237d
authored
May 03, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split migration to add and index namespaces.runners_token
parent
794ac6c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
db/migrate/20170906133745_add_runners_token_to_groups.rb
db/migrate/20170906133745_add_runners_token_to_groups.rb
+1
-9
db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb
...e/20180503150427_add_index_to_namespaces_runners_token.rb
+14
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20170906133745_add_runners_token_to_groups.rb
View file @
dd74237d
...
@@ -3,15 +3,7 @@ class AddRunnersTokenToGroups < ActiveRecord::Migration
...
@@ -3,15 +3,7 @@ class AddRunnersTokenToGroups < ActiveRecord::Migration
DOWNTIME
=
false
DOWNTIME
=
false
disable_ddl_transaction!
def
change
def
up
add_column
:namespaces
,
:runners_token
,
:string
add_column
:namespaces
,
:runners_token
,
:string
add_concurrent_index
:namespaces
,
:runners_token
,
unique:
true
end
def
down
remove_column
:namespaces
,
:runners_token
end
end
end
end
db/migrate/20180503150427_add_index_to_namespaces_runners_token.rb
0 → 100644
View file @
dd74237d
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddIndexToNamespacesRunnersToken
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
change
add_concurrent_index
:namespaces
,
:runners_token
,
unique:
true
end
end
db/schema.rb
View file @
dd74237d
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20180
430143705
)
do
ActiveRecord
::
Schema
.
define
(
version:
20180
503150427
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
...
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