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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 18:07:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-07 18:07:34 +0300
commitb4028d450087e97f26d4baa23e08396bcbabe3e0 (patch)
treef84a5cbb29e43bab0ba58db1bc5619112c8c482e /db/migrate/20191218124915_add_repository_storage_to_snippets.rb
parent05f1d5d9813332bdd456cb358517e56168a24224 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20191218124915_add_repository_storage_to_snippets.rb')
-rw-r--r--db/migrate/20191218124915_add_repository_storage_to_snippets.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/db/migrate/20191218124915_add_repository_storage_to_snippets.rb b/db/migrate/20191218124915_add_repository_storage_to_snippets.rb
new file mode 100644
index 00000000000..df9a9d2ff43
--- /dev/null
+++ b/db/migrate/20191218124915_add_repository_storage_to_snippets.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+class AddRepositoryStorageToSnippets < ActiveRecord::Migration[5.2]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default( # rubocop:disable Migration/AddColumnWithDefault
+ :snippets,
+ :repository_storage,
+ :string,
+ default: 'default',
+ limit: 255,
+ allow_null: false
+ )
+ end
+
+ def down
+ remove_column(:snippets, :repository_storage)
+ end
+end