forked from bofh/fetsite
New Feature: Themen/Informationen
This commit is contained in:
8
app/models/attachment.rb
Normal file
8
app/models/attachment.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Attachment < ActiveRecord::Base
|
||||
has_paper_trail
|
||||
attr_accessible :name
|
||||
belongs_to :thema
|
||||
|
||||
validates :thema, :presence => true
|
||||
validates :name, :presence => true
|
||||
end
|
||||
Reference in New Issue
Block a user