associated builds for commit should be destroyed as dependent

Fixes this issue:  https://github.com/gitlabhq/gitlab-ci/issues/511

Done :)

Date: Thu, 18 Dec 2014 10:36:49 -0800
From: notifications@github.com
To: gitlab-ci@noreply.github.com
CC: dvboom@hotmail.com
Subject: Re: [gitlab-ci] associated builds for commit should be destroyed as dependent (#514)

In app/models/commit.rb:

> @@ -14,7 +14,7 @@
>  
>  class Commit < ActiveRecord::Base
>    belongs_to :project
> -  has_many :builds
> +  has_many :builds, :dependent=>:destroy

Use the new Ruby 1.9 hash syntax.
Surrounding space missing for operator '=>'.


—
Reply to this email directly or view it on GitHub.

  
    
    
  
  
 		 	   		  =