Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2019-07-15 21:06:01 +0300
committerMichael Kozono <mkozono@gmail.com>2019-08-13 21:51:45 +0300
commit6e93f2c7122d9b8cfa932342d22628e1f1e10189 (patch)
tree99842f670f2a68994556902190dcc632fbea5481 /db/migrate
parentdf35d772c655587eecbe7b3e387c8b8bc287b23c (diff)
Add object storage flag to Geo Node (migration)
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190715173819_add_object_storage_flag_to_geo_node.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/db/migrate/20190715173819_add_object_storage_flag_to_geo_node.rb b/db/migrate/20190715173819_add_object_storage_flag_to_geo_node.rb
new file mode 100644
index 00000000000..2d3243f3357
--- /dev/null
+++ b/db/migrate/20190715173819_add_object_storage_flag_to_geo_node.rb
@@ -0,0 +1,21 @@
+# 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