summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20230508095017_add_project_shortcut_buttons_to_user_preferences.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20230508095017_add_project_shortcut_buttons_to_user_preferences.rb b/db/migrate/20230508095017_add_project_shortcut_buttons_to_user_preferences.rb
new file mode 100644
index 00000000000..e68148e17a5
--- /dev/null
+++ b/db/migrate/20230508095017_add_project_shortcut_buttons_to_user_preferences.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddProjectShortcutButtonsToUserPreferences < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def change
+ add_column :user_preferences, :project_shortcut_buttons, :boolean, default: true, null: false
+ end
+end