Commit da0a5c7c authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'ab-remove-support-bot-column' into 'master'

Remove Users.support_bot column

See merge request gitlab-org/gitlab-ce!32554
parents aa34c693 1b81a81b
---
title: Remove Users.support_bot column
merge_request: 32554
author:
type: other
# frozen_string_literal: true
class RemoveSupportBotColumnFromUsers < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
return unless column_exists?(:users, :support_bot)
remove_column :users, :support_bot
end
def down
# no-op because the column should not exist in the previous version
end
end
......@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_09_02_131045) do
ActiveRecord::Schema.define(version: 2019_09_02_160015) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_trgm"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment