b8b9ed55df
Signed-off-by: Rémy Coutable <remy@rymai.me>
16 lines
397 B
Ruby
16 lines
397 B
Ruby
# rubocop:disable Migration/UpdateColumnInBatches
|
|
class MakeProjectOwnersMasters < ActiveRecord::Migration
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
|
|
|
def up
|
|
update_column_in_batches(:members, :access_level, 40) do |table, query|
|
|
query.where(table[:access_level].eq(50).and(table[:source_type].eq('Project')))
|
|
end
|
|
end
|
|
|
|
def down
|
|
# do nothing
|
|
end
|
|
end
|