40ad7d5d7a
Extending from ActiveRecord::Migration is deprecated, but was still used in a bunch of places.
18 lines
386 B
Ruby
18 lines
386 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CleanupEnvironmentsExternalUrl < ActiveRecord::Migration[4.2]
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
|
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
update_column_in_batches(:environments, :external_url, nil) do |table, query|
|
|
query.where(table[:external_url].matches('javascript://%'))
|
|
end
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|