2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-03-15 21:52:27 +00:00
|
|
|
class Arch < ActiveRecord::Base
|
2011-04-07 14:20:21 +01:00
|
|
|
has_many :build_lists, :dependent => :destroy
|
|
|
|
|
|
|
|
validates :name, :presence => true, :uniqueness => true
|
|
|
|
|
|
|
|
scope :recent, order("name ASC")
|
2011-03-15 21:52:27 +00:00
|
|
|
end
|