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
98bb78a4
Commit
98bb78a4
authored
Nov 16, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add environment_scope to cluster table
parent
6369db01
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
db/migrate/20171116135628_add_environment_scope_to_clusters.rb
...grate/20171116135628_add_environment_scope_to_clusters.rb
+15
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20171116135628_add_environment_scope_to_clusters.rb
0 → 100644
View file @
98bb78a4
class
AddEnvironmentScopeToClusters
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
(
:clusters
,
:environment_scope
,
:string
,
default:
'*'
)
end
def
down
remove_column
(
:clusters
,
:environment_scope
)
end
end
db/schema.rb
View file @
98bb78a4
...
@@ -523,6 +523,7 @@ ActiveRecord::Schema.define(version: 20171121144800) do
...
@@ -523,6 +523,7 @@ ActiveRecord::Schema.define(version: 20171121144800) do
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
boolean
"enabled"
,
default:
true
t
.
boolean
"enabled"
,
default:
true
t
.
string
"name"
,
null:
false
t
.
string
"name"
,
null:
false
t
.
string
"environment_scope"
,
default:
"*"
,
null:
false
end
end
add_index
"clusters"
,
[
"enabled"
],
name:
"index_clusters_on_enabled"
,
using: :btree
add_index
"clusters"
,
[
"enabled"
],
name:
"index_clusters_on_enabled"
,
using: :btree
...
...
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