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/20131112220935_add_visibility_level_to_projects.rb')
-rw-r--r--db/migrate/20131112220935_add_visibility_level_to_projects.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/db/migrate/20131112220935_add_visibility_level_to_projects.rb b/db/migrate/20131112220935_add_visibility_level_to_projects.rb
deleted file mode 100644
index cf1e9f912a0..00000000000
--- a/db/migrate/20131112220935_add_visibility_level_to_projects.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-class AddVisibilityLevelToProjects < ActiveRecord::Migration
- def self.up
- add_column :projects, :visibility_level, :integer, :default => 0, :null => false
- Project.where(public: true).update_all(visibility_level: Gitlab::VisibilityLevel::PUBLIC)
- remove_column :projects, :public
- end
-
- def self.down
- add_column :projects, :public, :boolean, :default => false, :null => false
- Project.where(visibility_level: Gitlab::VisibilityLevel::PUBLIC).update_all(public: true)
- remove_column :projects, :visibility_level
- end
-end