summaryrefslogtreecommitdiff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-12-12 08:38:04 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-12-12 08:38:04 +0000
commit70b8aa8dbb6b449e24add797a8efc50618e73ab1 (patch)
treecb40d5d2359c18c282efa2e88a2f1bc1b0e8a868 /db/post_migrate
parentba731b2ab2426745486f87bde006fa59c4bfcdd8 (diff)
parentd47bc70c102147ac6c3c6909fb903e1e962b0de7 (diff)
downloadgitlab-ce-70b8aa8dbb6b449e24add797a8efc50618e73ab1.tar.gz
Merge branch 'fix-remove-branch-name-migration' into 'master'
Fix migration that removes issues.branch_name See merge request gitlab-org/gitlab-ce!15858
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20171106154015_remove_issues_branch_name.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/post_migrate/20171106154015_remove_issues_branch_name.rb b/db/post_migrate/20171106154015_remove_issues_branch_name.rb
new file mode 100644
index 00000000000..162b6bafab4
--- /dev/null
+++ b/db/post_migrate/20171106154015_remove_issues_branch_name.rb
@@ -0,0 +1,14 @@
+# rubocop:disable Migration/RemoveColumn
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class RemoveIssuesBranchName < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ remove_column :issues, :branch_name, :string
+ end
+end