module Refinery module GalleryLinks class GalleryLink < Refinery::Core::BaseModel self.table_name = 'refinery_gallery_links' belongs_to :image, class_name: ::Refinery::Image attr_accessible :title, :url, :photographer, :description, :image_id, :position validates :title, :presence => true, :uniqueness => true end end end