Commit 5f0e5223 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'blacklist-project-features-table' into 'master'

Add project_features to large table blacklist

See merge request gitlab-org/gitlab!29554
parents 2f4f7b6d bb18cb63
...@@ -4,11 +4,15 @@ class AddPagesAccessLevelToProjectFeature < ActiveRecord::Migration[4.2] ...@@ -4,11 +4,15 @@ class AddPagesAccessLevelToProjectFeature < ActiveRecord::Migration[4.2]
DOWNTIME = false DOWNTIME = false
# rubocop: disable Migration/UpdateLargeTable
# rubocop: disable Migration/AddColumnWithDefault
def up def up
add_column_with_default(:project_features, :pages_access_level, :integer, default: ProjectFeature::PUBLIC, allow_null: false) 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) change_column_default(:project_features, :pages_access_level, ProjectFeature::ENABLED)
end end
# rubocop: enable Migration/UpdateLargeTable
# rubocop: enable Migration/AddColumnWithDefault
def down def down
remove_column :project_features, :pages_access_level remove_column :project_features, :pages_access_level
......
...@@ -32,6 +32,7 @@ module RuboCop ...@@ -32,6 +32,7 @@ module RuboCop
project_authorizations project_authorizations
projects projects
project_ci_cd_settings project_ci_cd_settings
project_features
push_event_payloads push_event_payloads
resource_label_events resource_label_events
routes routes
......
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