diff options
Diffstat (limited to 'db/ci/migrate/20150710113851_migrate_deploy_to_job_type_for_builds.rb')
-rw-r--r-- | db/ci/migrate/20150710113851_migrate_deploy_to_job_type_for_builds.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/ci/migrate/20150710113851_migrate_deploy_to_job_type_for_builds.rb b/db/ci/migrate/20150710113851_migrate_deploy_to_job_type_for_builds.rb new file mode 100644 index 00000000000..2690fc1a255 --- /dev/null +++ b/db/ci/migrate/20150710113851_migrate_deploy_to_job_type_for_builds.rb @@ -0,0 +1,6 @@ +class MigrateDeployToJobTypeForBuilds < ActiveRecord::Migration + def up + execute("UPDATE builds SET job_type='test' WHERE NOT deploy") + execute("UPDATE builds SET job_type='deploy' WHERE deploy") + end +end |