Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20230607124754_create_organization_settings.rb')
-rw-r--r--db/migrate/20230607124754_create_organization_settings.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20230607124754_create_organization_settings.rb b/db/migrate/20230607124754_create_organization_settings.rb
new file mode 100644
index 00000000000..15d3fa3159f
--- /dev/null
+++ b/db/migrate/20230607124754_create_organization_settings.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class CreateOrganizationSettings < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def change
+ create_table :organization_settings, id: false do |t|
+ t.references :organization, primary_key: true, default: nil, index: false, foreign_key: { on_delete: :cascade }
+ t.timestamps_with_timezone null: false
+ t.jsonb :settings, default: {}, null: false
+ end
+ end
+end