blob: 1eb99feb40c9ef3d07ba11f69cfe16f384d653fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class DropAndReaddHasExternalWikiInProjects < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
def up
update_column_in_batches(:projects, :has_external_wiki, nil) do |table, query|
query.where(table[:has_external_wiki].not_eq(nil))
end
end
def down
end
end
|