Postmigrate to drop domain column

Now that the column is ignored, we can safely drop the column
This commit is contained in:
Thong Kuah 2019-05-22 14:44:09 +12:00
parent 851321f725
commit bfed231152
3 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Removes project_auto_devops#domain column
merge_request: 28574
author:
type: other

View File

@ -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

View File

@ -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