blog_perso_app/app/models/gallery_image.rb
Nicolas Bally 56a0aa9848 initial
2012-06-17 21:11:12 +02:00

9 lines
184 B
Ruby

# -*- encoding : utf-8 -*-
class GalleryImage < ActiveRecord::Base
belongs_to :image_file
belongs_to :gallery
belongs_to :gallery_content
validates :title, :presence => true
end