foodsoft/plugins/documents/app/models/document.rb

6 lines
157 B
Ruby
Raw Normal View History

class Document < ActiveRecord::Base
belongs_to :created_by, :class_name => 'User', :foreign_key => 'created_by_user_id'
validates_presence_of :data
end