blob: 40ed98dcb5e1fc1451246d9c8bc96a564f173c26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
class UpdateBatchedBackgroundMigrationArguments < Gitlab::Database::Migration[1.0]
def up
execute(<<~SQL)
UPDATE batched_background_migrations
SET job_arguments = '[]'
WHERE job_arguments = '"[]"';
SQL
end
def down
execute(<<~SQL)
UPDATE batched_background_migrations
SET job_arguments = '"[]"'
WHERE job_arguments = '[]';
SQL
end
end
|