From a7e9d7e02c44742cb5ff360df1771a5da8e2f596 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 30 May 2013 14:49:21 +0600 Subject: [PATCH] [#147] change order a build list update types list --- app/models/build_list.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 6807a8c9a..9e8a10bf1 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -16,8 +16,8 @@ class BuildList < ActiveRecord::Base has_many :items, :class_name => "BuildList::Item", :dependent => :destroy has_many :packages, :class_name => "BuildList::Package", :dependent => :destroy - UPDATE_TYPES = %w[security bugfix enhancement recommended newpackage] - RELEASE_UPDATE_TYPES = %w[security bugfix] + UPDATE_TYPES = %w[bugfix security enhancement recommended newpackage] + RELEASE_UPDATE_TYPES = %w[bugfix security] validates :project_id, :project_version, :arch, :include_repos, :build_for_platform_id, :save_to_platform_id, :save_to_repository_id, :presence => true