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/post_migrate/20200617001637_validate_file_store_not_null_constraint_on_lfs_objects.rb')
-rw-r--r--db/post_migrate/20200617001637_validate_file_store_not_null_constraint_on_lfs_objects.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20200617001637_validate_file_store_not_null_constraint_on_lfs_objects.rb b/db/post_migrate/20200617001637_validate_file_store_not_null_constraint_on_lfs_objects.rb
new file mode 100644
index 00000000000..27a30b1d696
--- /dev/null
+++ b/db/post_migrate/20200617001637_validate_file_store_not_null_constraint_on_lfs_objects.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class ValidateFileStoreNotNullConstraintOnLfsObjects < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ validate_check_constraint(:lfs_objects, :check_eecfc5717d)
+ end
+
+ def down
+ # no-op
+ end
+end