remove length of snippet content
This commit is contained in:
parent
f70f7d0709
commit
69ec189ad2
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ class Snippet < ActiveRecord::Base
|
|||
validates :project, presence: true
|
||||
validates :title, presence: true, length: { within: 0..255 }
|
||||
validates :file_name, presence: true, length: { within: 0..255 }
|
||||
validates :content, presence: true, length: { within: 0..10000 }
|
||||
validates :content, presence: true
|
||||
|
||||
# Scopes
|
||||
scope :fresh, order("created_at DESC")
|
||||
|
|
Loading…
Reference in a new issue