Commit 69ec189a authored by Valeriy Sizov's avatar Valeriy Sizov

remove length of snippet content

parent f70f7d07
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment