Skip to content
Snippets Groups Projects

Add new jsonb column to store settings for default branch protection

Merged Michael Becker requested to merge feat/408150 into master
6 files
+ 11
5
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -3,6 +3,5 @@
@@ -3,6 +3,5 @@
class AddDefaultBranchProtectionsJsonToApplicationSettings < Gitlab::Database::Migration[2.1]
class AddDefaultBranchProtectionsJsonToApplicationSettings < Gitlab::Database::Migration[2.1]
def change
def change
add_column :application_settings, :default_branch_protection_defaults, :jsonb, null: false, default: {}
add_column :application_settings, :default_branch_protection_defaults, :jsonb, null: false, default: {}
add_column :namespaces, :default_branch_protection_defaults, :jsonb, null: false, default: {} # rubocop:disable Migration/AddColumnsToWideTables
end
end
end
end
Loading