This commit is contained in:
Patrick Gansterer 2016-04-28 13:46:13 +02:00 committed by wvengen
parent 33c9b23e2f
commit 8bb58c5519
18 changed files with 310 additions and 0 deletions

View file

@ -0,0 +1,5 @@
class Document < ActiveRecord::Base
belongs_to :created_by, :class_name => 'User', :foreign_key => 'created_by_user_id'
validates_presence_of :data
end