diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-06-03 11:21:18 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-06-10 16:41:56 +0300 |
commit | 136a4ea39bb82d7e88b79a3bb7b2f3b4a5ec42ab (patch) | |
tree | eb0aef01f6b7eb2da95434501b860c2738dd3a5f /db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb | |
parent | f29fd65cdde1d769fc89f0cc57ea989765b5068f (diff) |
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.rb | 10 |
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 |