# See http://doc.gitlab.com/ce/development/migration_style_guide.html# for more information on how to write migrations for GitLab.classMigrateUserProjectView<ActiveRecord::MigrationincludeGitlab::Database::MigrationHelpers# Set this constant to true if this migration requires downtime.DOWNTIME=false
defupupdate_column_in_batches(:users,:project_view,2)do|table,query|query.where(table[:project_view].eq(0))endenddefdown# Nothing can be done to restore old valuesendend