rosa-build/app/models/arch.rb

9 lines
220 B
Ruby
Raw Normal View History

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
2013-02-28 15:27:50 +00:00
scope :recent, order("#{table_name}.name ASC")
2011-03-15 21:52:27 +00:00
end