blob: 28f531463bcafe593cd6402067f6d940fe8a6311 (
plain)
1
2
3
4
5
6
7
8
|
class FailBuildWithEmptyName < ActiveRecord::Migration[4.2]
def up
execute("UPDATE ci_builds SET status='failed' WHERE (name IS NULL OR name='') AND status='pending'")
end
def down
end
end
|