Add documents (merges foodcoops/foodsoft#353)
This commit is contained in:
parent
33c9b23e2f
commit
8bb58c5519
18 changed files with 310 additions and 0 deletions
5
plugins/documents/app/models/document.rb
Normal file
5
plugins/documents/app/models/document.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue