diff options
Diffstat (limited to 'db/migrate/20151019111703_fail_build_without_names.rb')
-rw-r--r-- | db/migrate/20151019111703_fail_build_without_names.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/migrate/20151019111703_fail_build_without_names.rb b/db/migrate/20151019111703_fail_build_without_names.rb new file mode 100644 index 00000000000..546b03d8129 --- /dev/null +++ b/db/migrate/20151019111703_fail_build_without_names.rb @@ -0,0 +1,5 @@ +class FailBuildWithoutNames < ActiveRecord::Migration + def change + execute("UPDATE ci_builds SET status='failed' WHERE name IS NULL AND status='pending'") + end +end |