gitlab-org--gitlab-foss/db/migrate/20161018124658_make_project...

19 lines
430 B
Ruby
Raw Normal View History

# rubocop:disable Migration/UpdateColumnInBatches
class MakeProjectOwnersMasters < ActiveRecord::Migration[4.2]
2016-10-18 13:49:19 +00:00
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
2016-10-18 13:49:19 +00:00
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