Files
fetsite/app/models/attachment.rb
2013-08-05 18:31:04 +02:00

9 lines
182 B
Ruby

class Attachment < ActiveRecord::Base
has_paper_trail
attr_accessible :name
belongs_to :thema
validates :thema, :presence => true
validates :name, :presence => true
end