@@ -0,0 +1,779 @@
+%22%22%22%0ARename %22build%22 models to %22job%22 models%0A%22%22%22%0Aimport py.path%0Aimport yaml%0A%0Afrom yaml import safe_load as yaml_load%0A%0A%0Abuilds_path = py.path.local().join('data', 'builds')%0Ajobs_path = py.path.local().join('data', 'jobs')%0A%0Afor project_path in builds_path.listdir():%0A    build_files = project_path.listdir(%0A        lambda filename: filename.fnmatch('*.yaml')%0A    )%0A    for build_file in build_files:%0A        with build_file.open() as handle:%0A            build_data = yaml_load(handle)%0A        try:%0A            build_data%5B'job_stage_slugs'%5D = build_data.pop('build_stage_slugs')%0A        except KeyError:%0A            pass%0A        else:%0A            with build_file.open('w') as handle:%0A                yaml.dump(build_data, handle, default_flow_style=False)%0A%0Abuilds_path.move(jobs_path)%0A

Add build -> job migration