Merge branch '11917-dont-clear-cache'
[arvados.git] / services / api / db / migrate / 20170628185847_jobs_yaml_to_json.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'migrate_yaml_to_json'
6
7 class JobsYamlToJson < ActiveRecord::Migration
8   def up
9     [
10       'components',
11       'script_parameters',
12       'runtime_constraints',
13       'tasks_summary',
14     ].each do |column|
15       MigrateYAMLToJSON.migrate("jobs", column)
16     end
17   end
18
19   def down
20   end
21 end