diff options
author | Paco Guzman <pacoguzmanp@gmail.com> | 2016-06-03 10:21:18 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-06-10 15:41:56 +0200 |
commit | 136a4ea39bb82d7e88b79a3bb7b2f3b4a5ec42ab (patch) | |
tree | eb0aef01f6b7eb2da95434501b860c2738dd3a5f /db | |
parent | f29fd65cdde1d769fc89f0cc57ea989765b5068f (diff) | |
download | gitlab-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')
-rw-r--r-- | db/migrate/20160603075128_add_has_external_issue_tracker_to_projects.rb | 10 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 11 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 diff --git a/db/schema.rb b/db/schema.rb index 09ff52ccc8e..aac327797e7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -780,6 +780,7 @@ ActiveRecord::Schema.define(version: 20160608155312) do t.datetime "last_repository_check_at" t.boolean "container_registry_enabled" t.boolean "only_allow_merge_if_build_succeeds", default: false, null: false + t.boolean "has_external_issue_tracker" end add_index "projects", ["builds_enabled", "shared_runners_enabled"], name: "index_projects_on_builds_enabled_and_shared_runners_enabled", using: :btree |