summaryrefslogtreecommitdiff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2017-12-11 18:06:53 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2017-12-11 18:06:53 +0100
commitd47bc70c102147ac6c3c6909fb903e1e962b0de7 (patch)
tree39e86e1043037887de8c256519ee124bb995a7d2 /db/post_migrate
parentbd8b6518855bd9768ca5d245467b5ff0934e40b6 (diff)
downloadgitlab-ce-d47bc70c102147ac6c3c6909fb903e1e962b0de7.tar.gz
Fix migration that removes issues.branch_namefix-remove-branch-name-migration
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20171106154015_remove_issues_branch_name.rb13
1 files changed, 13 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..3d08225c96d
--- /dev/null
+++ b/db/post_migrate/20171106154015_remove_issues_branch_name.rb
@@ -0,0 +1,13 @@
+# 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