Merge pull request #148 from abf/rosa-build:147-build_list_update_type_order

[refs #147] Change order in update type list
This commit is contained in:
warpc 2013-05-30 13:04:23 +04:00
commit 38331d76ea
1 changed files with 2 additions and 2 deletions

View File

@ -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