boissier_app/app/models/promotion.rb
Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

11 lines
207 B
Ruby

# -*- encoding : utf-8 -*-
class Promotion < ActiveRecord::Base
belongs_to :image_file
validates :title, :presence => true
PROMOTION_TYPES = [["Hygiène",1], ["Cosmétiques",2], ["Bébés",3]]
end