2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-03-15 21:52:27 +00:00
|
|
|
class Arch < ActiveRecord::Base
|
2013-07-31 20:17:38 +01:00
|
|
|
DEFAULT = %w[i586 x86_64]
|
|
|
|
|
2011-04-07 14:20:21 +01:00
|
|
|
has_many :build_lists, :dependent => :destroy
|
|
|
|
|
|
|
|
validates :name, :presence => true, :uniqueness => true
|
|
|
|
|
2013-02-28 15:27:50 +00:00
|
|
|
scope :recent, order("#{table_name}.name ASC")
|
2011-03-15 21:52:27 +00:00
|
|
|
end
|