rosa-build/app/models/arch.rb

10 lines
201 B
Ruby

class Arch < ActiveRecord::Base
DEFAULT = %w[i586 x86_64]
has_many :build_lists, dependent: :destroy
validates :name, presence: true, uniqueness: true
scope :recent, -> { order(:name) }
end