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
6e93f2c7
Commit
6e93f2c7
authored
Jul 15, 2019
by
Gabriel Mazetto
Committed by
Michael Kozono
Aug 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add object storage flag to Geo Node (migration)
parent
df35d772
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
db/migrate/20190715173819_add_object_storage_flag_to_geo_node.rb
...ate/20190715173819_add_object_storage_flag_to_geo_node.rb
+21
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
db/migrate/20190715173819_add_object_storage_flag_to_geo_node.rb
0 → 100644
View file @
6e93f2c7
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddObjectStorageFlagToGeoNode
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
:geo_nodes
,
:sync_object_storage
,
:boolean
,
default:
false
end
def
down
remove_column
:geo_nodes
,
:sync_object_storage
end
end
db/schema.rb
View file @
6e93f2c7
...
...
@@ -1456,6 +1456,7 @@ ActiveRecord::Schema.define(version: 2019_08_06_071559) do
t
.
integer
"container_repositories_max_capacity"
,
default:
10
,
null:
false
t
.
datetime_with_timezone
"created_at"
t
.
datetime_with_timezone
"updated_at"
t
.
boolean
"sync_object_storage"
,
default:
false
,
null:
false
t
.
index
[
"access_key"
],
name:
"index_geo_nodes_on_access_key"
t
.
index
[
"name"
],
name:
"index_geo_nodes_on_name"
,
unique:
true
t
.
index
[
"primary"
],
name:
"index_geo_nodes_on_primary"
...
...
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