diff options
author | Igor Drozdov <idrozdov@gitlab.com> | 2019-03-20 20:23:23 +0300 |
---|---|---|
committer | Igor Drozdov <idrozdov@gitlab.com> | 2019-03-20 20:33:49 +0300 |
commit | 732f892db308863f2a2db736949c94ae9d613678 (patch) | |
tree | ebd669db3075e46f733dd348d2d95be624a586d2 /db | |
parent | 37bd7aa6beffd1567dadcb4fff8167d050deabd8 (diff) | |
download | gitlab-ce-732f892db308863f2a2db736949c94ae9d613678.tar.gz |
Return cached languages if they've been detected before
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190312071108_add_detected_repository_languages_to_projects.rb | 12 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/db/migrate/20190312071108_add_detected_repository_languages_to_projects.rb b/db/migrate/20190312071108_add_detected_repository_languages_to_projects.rb new file mode 100644 index 00000000000..5ce0ca19888 --- /dev/null +++ b/db/migrate/20190312071108_add_detected_repository_languages_to_projects.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +# See http://doc.gitlab.com/ce/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class AddDetectedRepositoryLanguagesToProjects < ActiveRecord::Migration[5.0] + DOWNTIME = false + + def change + add_column :projects, :detected_repository_languages, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index dda0445e3f2..eee38651b33 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20190301182457) do +ActiveRecord::Schema.define(version: 20190312071108) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1739,6 +1739,7 @@ ActiveRecord::Schema.define(version: 20190301182457) do t.bigint "pool_repository_id" t.string "runners_token_encrypted" t.string "bfg_object_map" + t.boolean "detected_repository_languages" t.index ["ci_id"], name: "index_projects_on_ci_id", using: :btree t.index ["created_at"], name: "index_projects_on_created_at", using: :btree t.index ["creator_id"], name: "index_projects_on_creator_id", using: :btree |