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
bb18cb63
Commit
bb18cb63
authored
Apr 15, 2020
by
Tiger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project_features to large table blacklist
parent
0d1bae05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
db/migrate/20180423204600_add_pages_access_level_to_project_feature.rb
...180423204600_add_pages_access_level_to_project_feature.rb
+4
-0
rubocop/migration_helpers.rb
rubocop/migration_helpers.rb
+1
-0
No files found.
db/migrate/20180423204600_add_pages_access_level_to_project_feature.rb
View file @
bb18cb63
...
...
@@ -4,11 +4,15 @@ class AddPagesAccessLevelToProjectFeature < ActiveRecord::Migration[4.2]
DOWNTIME
=
false
# rubocop: disable Migration/UpdateLargeTable
# rubocop: disable Migration/AddColumnWithDefault
def
up
add_column_with_default
(
:project_features
,
:pages_access_level
,
:integer
,
default:
ProjectFeature
::
PUBLIC
,
allow_null:
false
)
change_column_default
(
:project_features
,
:pages_access_level
,
ProjectFeature
::
ENABLED
)
end
# rubocop: enable Migration/UpdateLargeTable
# rubocop: enable Migration/AddColumnWithDefault
def
down
remove_column
:project_features
,
:pages_access_level
...
...
rubocop/migration_helpers.rb
View file @
bb18cb63
...
...
@@ -32,6 +32,7 @@ module RuboCop
project_authorizations
projects
project_ci_cd_settings
project_features
push_event_payloads
resource_label_events
routes
...
...
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