summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-05-22 14:44:09 +1200
committerThong Kuah <tkuah@gitlab.com>2019-05-31 13:27:39 +1200
commitbfed231152fa476aa4be6e221d65dc5225d19537 (patch)
treec5966b6de43af47c63679505e05f3823d7d53d89
parent851321f725062e34248f3d3053cdb92d89d2a1f3 (diff)
downloadgitlab-ce-56959-drop-project_auto_devops_domain.tar.gz
Postmigrate to drop domain column56959-drop-project_auto_devops_domain
Now that the column is ignored, we can safely drop the column
-rw-r--r--changelogs/unreleased/56959-drop-project_auto_devops_domain.yml5
-rw-r--r--db/post_migrate/20190522143720_drop_project_auto_devops_domain.rb11
-rw-r--r--db/schema.rb1
3 files changed, 16 insertions, 1 deletions
diff --git a/changelogs/unreleased/56959-drop-project_auto_devops_domain.yml b/changelogs/unreleased/56959-drop-project_auto_devops_domain.yml
new file mode 100644
index 00000000000..c529749670d
--- /dev/null
+++ b/changelogs/unreleased/56959-drop-project_auto_devops_domain.yml
@@ -0,0 +1,5 @@
+---
+title: Removes project_auto_devops#domain column
+merge_request: 28574
+author:
+type: other
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