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
3aa3cef4
Commit
3aa3cef4
authored
Feb 15, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add enabled column to geo_nodes table
parent
cd0400ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
db/migrate/20170216000450_add_enabled_to_geo_nodes.rb
db/migrate/20170216000450_add_enabled_to_geo_nodes.rb
+15
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20170216000450_add_enabled_to_geo_nodes.rb
0 → 100644
View file @
3aa3cef4
class
AddEnabledToGeoNodes
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
:geo_nodes
,
:enabled
,
:boolean
,
default:
true
end
def
down
remove_column
:geo_nodes
,
:enabled
end
end
db/schema.rb
View file @
3aa3cef4
...
...
@@ -529,6 +529,7 @@ ActiveRecord::Schema.define(version: 20170306180725) do
t
.
string
"access_key"
t
.
string
"encrypted_secret_access_key"
t
.
string
"encrypted_secret_access_key_iv"
t
.
boolean
"enabled"
,
default:
true
,
null:
false
end
add_index
"geo_nodes"
,
[
"access_key"
],
name:
"index_geo_nodes_on_access_key"
,
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