summaryrefslogtreecommitdiff
path: root/db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-06-03 10:21:18 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-06-10 15:41:56 +0200
commit136a4ea39bb82d7e88b79a3bb7b2f3b4a5ec42ab (patch)
treeeb0aef01f6b7eb2da95434501b860c2738dd3a5f /db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb
parentf29fd65cdde1d769fc89f0cc57ea989765b5068f (diff)
downloadgitlab-ce-136a4ea39bb82d7e88b79a3bb7b2f3b4a5ec42ab.tar.gz
Cache the presence of an issue_tracker at project level
Using update_column to store the boolean flag to avoid any side effects with the current state of the project instance
Diffstat (limited to 'db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb')
-rw-r--r--db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb b/db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb
new file mode 100644
index 00000000000..be295f0181d
--- /dev/null
+++ b/db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb
@@ -0,0 +1,10 @@
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddHasExternalIssueTrackerToProjects < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ def change
+ add_column(:projects, :has_external_issue_tracker, :boolean)
+ end
+end