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 :project, presence: true
|
||||||
validates :title, presence: true, length: { within: 0..255 }
|
validates :title, presence: true, length: { within: 0..255 }
|
||||||
validates :file_name, 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
|
# Scopes
|
||||||
scope :fresh, order("created_at DESC")
|
scope :fresh, order("created_at DESC")
|
||||||
|
|
Loading…
Add table
Reference in a new issue