Add comments to Wiki pages
This commit is contained in:
parent
652d28f56b
commit
36efa2042c
10 changed files with 72 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
class Wiki < ActiveRecord::Base
|
||||
belongs_to :project
|
||||
belongs_to :user
|
||||
has_many :notes, :as => :noteable, :dependent => :destroy
|
||||
|
||||
validates :content, :title, :user_id, :presence => true
|
||||
validates :title, :length => 1..250
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue