Refactoring of order comments.
This commit is contained in:
parent
38b5dcba1f
commit
88b268cb0b
14 changed files with 57 additions and 47 deletions
|
|
@ -4,6 +4,7 @@ class OrderComment < ActiveRecord::Base
|
|||
belongs_to :user
|
||||
|
||||
validates_presence_of :order_id, :user_id, :text
|
||||
validates_length_of :text, :minimum => 3
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue