BigW Consortium Gitlab

20151023112551_fail_build_with_empty_name.rb 219 Bytes
Newer Older
1
# rubocop:disable all
2
class FailBuildWithEmptyName < ActiveRecord::Migration
3
  def up
4 5
    execute("UPDATE ci_builds SET status='failed' WHERE (name IS NULL OR name='') AND status='pending'")
  end
6 7 8

  def down
  end
9
end