diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-05-22 05:44:09 +0300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-05-31 04:27:39 +0300 |
commit | bfed231152fa476aa4be6e221d65dc5225d19537 (patch) | |
tree | c5966b6de43af47c63679505e05f3823d7d53d89 /db | |
parent | 851321f725062e34248f3d3053cdb92d89d2a1f3 (diff) |
Postmigrate to drop domain column
Now that the column is ignored, we can safely drop the column
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20190522143720_drop_project_auto_devops_domain.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/db/post_migrate/20190522143720_drop_project_auto_devops_domain.rb b/db/post_migrate/20190522143720_drop_project_auto_devops_domain.rb new file mode 100644 index 00000000000..36278d83927 --- /dev/null +++ b/db/post_migrate/20190522143720_drop_project_auto_devops_domain.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +class DropProjectAutoDevopsDomain < ActiveRecord::Migration[5.1] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + def change + remove_column :project_auto_devops, :domain, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 89140048ad3..ef272be22ee 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1632,7 +1632,6 @@ ActiveRecord::Schema.define(version: 20190527194900) do t.datetime_with_timezone "created_at", null: false t.datetime_with_timezone "updated_at", null: false t.boolean "enabled" - t.string "domain" t.integer "deploy_strategy", default: 0, null: false t.index ["project_id"], name: "index_project_auto_devops_on_project_id", unique: true, using: :btree end |