From ddbbf453c76144ac60c67e783424faf843c8efa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarka=20Ko=C5=A1anov=C3=A1?= Date: Wed, 26 Jun 2019 16:03:57 +0200 Subject: Use title and description fields for issue trackers - instead of using properties - backward compatibility has to be kept for now --- db/migrate/20190625115224_add_description_to_services.rb | 14 ++++++++++++++ db/schema.rb | 1 + 2 files changed, 15 insertions(+) create mode 100644 db/migrate/20190625115224_add_description_to_services.rb (limited to 'db') diff --git a/db/migrate/20190625115224_add_description_to_services.rb b/db/migrate/20190625115224_add_description_to_services.rb new file mode 100644 index 00000000000..d5ef3900462 --- /dev/null +++ b/db/migrate/20190625115224_add_description_to_services.rb @@ -0,0 +1,14 @@ +# 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 AddDescriptionToServices < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + add_column :services, :description, :string, limit: 500 + end +end diff --git a/db/schema.rb b/db/schema.rb index 50fee850f9f..ad99ec73c07 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -3028,6 +3028,7 @@ ActiveRecord::Schema.define(version: 20190627051902) do t.boolean "job_events", default: false, null: false t.boolean "confidential_note_events", default: true t.boolean "deployment_events", default: false, null: false + t.string "description", limit: 500 t.index ["project_id"], name: "index_services_on_project_id", using: :btree t.index ["template"], name: "index_services_on_template", using: :btree t.index ["type"], name: "index_services_on_type", using: :btree -- cgit v1.2.1