Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20150710113851_migrate_deploy_to_job_type_for_builds.rb « migrate « ci « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2690fc1a255eff4e2633ddfb4a922e0213964eaa (plain)
1
2
3
4
5
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