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