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/20180508100222_add_not_null_constraint_to_project_mirror_data_foreign_key.rb')
-rw-r--r--db/migrate/20180508100222_add_not_null_constraint_to_project_mirror_data_foreign_key.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/db/migrate/20180508100222_add_not_null_constraint_to_project_mirror_data_foreign_key.rb b/db/migrate/20180508100222_add_not_null_constraint_to_project_mirror_data_foreign_key.rb
deleted file mode 100644
index dba5d20f276..00000000000
--- a/db/migrate/20180508100222_add_not_null_constraint_to_project_mirror_data_foreign_key.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-class AddNotNullConstraintToProjectMirrorDataForeignKey < ActiveRecord::Migration[4.2]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- class ProjectImportState < ActiveRecord::Base
- include EachBatch
-
- self.table_name = 'project_mirror_data'
- end
-
- def up
- ProjectImportState.where(project_id: nil).delete_all
-
- change_column_null :project_mirror_data, :project_id, false
- end
-
- def down
- change_column_null :project_mirror_data, :project_id, true
- end
-end