projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
11807: Migrate old records in jobs table from YAML to JSON.
[arvados.git]
/
services
/
api
/
db
/
migrate
/
20170628185847_jobs_yaml_to_json.rb
1
require 'migrate_yaml_to_json'
2
3
class JobsYamlToJson < ActiveRecord::Migration
4
def up
5
[
6
'components',
7
'script_parameters',
8
'runtime_constraints',
9
'tasks_summary',
10
].each do |column|
11
MigrateYAMLToJSON.migrate("jobs", column)
12
end
13
end
14
15
def down
16
end
17
end