Fail builds that also have empty string
This commit is contained in:
		
							parent
							
								
									2afb2d3c67
								
							
						
					
					
						commit
						0b25d837b8
					
				| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
class FailBuildWithEmptyName < ActiveRecord::Migration
 | 
			
		||||
  def change
 | 
			
		||||
    execute("UPDATE ci_builds SET status='failed' WHERE (name IS NULL OR name='') AND status='pending'")
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			@ -11,7 +11,7 @@
 | 
			
		|||
#
 | 
			
		||||
# It's strongly recommended that you check this file into your version control system.
 | 
			
		||||
 | 
			
		||||
ActiveRecord::Schema.define(version: 20151020173906) do
 | 
			
		||||
ActiveRecord::Schema.define(version: 20151023112551) do
 | 
			
		||||
 | 
			
		||||
  # These are extensions that must be enabled in order to support this database
 | 
			
		||||
  enable_extension "plpgsql"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue