Skip to content
Snippets Groups Projects
Commit 69ec189a authored by Valeriy Sizov's avatar Valeriy Sizov
Browse files

remove length of snippet content

parent f70f7d07
No related branches found
No related tags found
1 merge request!2940Expanding repos and hooks paths in settings
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment