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/20140313092127_migrate_already_imported_projects.rb')
-rw-r--r--db/migrate/20140313092127_migrate_already_imported_projects.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/db/migrate/20140313092127_migrate_already_imported_projects.rb b/db/migrate/20140313092127_migrate_already_imported_projects.rb
deleted file mode 100644
index f4392c0f05e..00000000000
--- a/db/migrate/20140313092127_migrate_already_imported_projects.rb
+++ /dev/null
@@ -1,12 +0,0 @@
-class MigrateAlreadyImportedProjects < ActiveRecord::Migration
- def up
- Project.where(imported: true).update_all(import_status: "finished")
- Project.where(imported: false).update_all(import_status: "none")
- remove_column :projects, :imported
- end
-
- def down
- add_column :projects, :imported, :boolean, default: false
- Project.where(import_status: 'finished').update_all(imported: true)
- end
-end