diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190625115224_add_description_to_services.rb | 14 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 15 insertions, 0 deletions
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 8876be1cb34..7948f919c57 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -3029,6 +3029,7 @@ ActiveRecord::Schema.define(version: 20190628145246) 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 |