app/models/project.rb
Class Project
has 24 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Project < ActiveRecord::Base
include ProjectStatus
has_many :commits, ->() { order('CASE WHEN commits.committed_at IS NULL THEN 0 ELSE 1 END', :committed_at, :id) }, dependent: :destroy
has_many :builds, through: :commits, dependent: :destroy