Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6c7a47ef
Commit
6c7a47ef
authored
Sep 03, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
51276a66
da0a5c7c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
changelogs/unreleased/ab-remove-support-bot-column.yml
changelogs/unreleased/ab-remove-support-bot-column.yml
+5
-0
db/post_migrate/20190902160015_remove_support_bot_column_from_users.rb
...te/20190902160015_remove_support_bot_column_from_users.rb
+19
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
changelogs/unreleased/ab-remove-support-bot-column.yml
0 → 100644
View file @
6c7a47ef
---
title
:
Remove Users.support_bot column
merge_request
:
32554
author
:
type
:
other
db/post_migrate/20190902160015_remove_support_bot_column_from_users.rb
0 → 100644
View file @
6c7a47ef
# 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
db/schema.rb
View file @
6c7a47ef
...
...
@@ -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_1
3104
5
)
do
ActiveRecord
::
Schema
.
define
(
version:
2019_09_02_1
6001
5
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment