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-02-01 03:08:41 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-01 03:08:41 +0300
commit72817fd7c07d1b812623f8d5e27fc7bcecb4eed5 (patch)
tree2e81b28a062212375bf17d1da0ff836d6b021469 /db/migrate/20200129035446_rename_pages_domains_domain_type_to_scope.rb
parent9db503ef9888c984b287af44d009d884e835ce04 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20200129035446_rename_pages_domains_domain_type_to_scope.rb')
-rw-r--r--db/migrate/20200129035446_rename_pages_domains_domain_type_to_scope.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20200129035446_rename_pages_domains_domain_type_to_scope.rb b/db/migrate/20200129035446_rename_pages_domains_domain_type_to_scope.rb
new file mode 100644
index 00000000000..74d9827e370
--- /dev/null
+++ b/db/migrate/20200129035446_rename_pages_domains_domain_type_to_scope.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class RenamePagesDomainsDomainTypeToScope < ActiveRecord::Migration[5.2]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ rename_column_concurrently :pages_domains, :domain_type, :scope
+ end
+
+ def down
+ undo_rename_column_concurrently :pages_domains, :domain_type, :scope
+ end
+end