Commit 3a1022e3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Increase Issue description size to 10k. Fixes #2545

parent 569a88a4
...@@ -24,7 +24,7 @@ class Issue < ActiveRecord::Base ...@@ -24,7 +24,7 @@ class Issue < ActiveRecord::Base
acts_as_taggable_on :labels acts_as_taggable_on :labels
validates :description, length: { within: 0..2000 } validates :description, length: { within: 0..10000 }
def self.open_for(user) def self.open_for(user)
opened.assigned(user) opened.assigned(user)
......
...@@ -29,7 +29,7 @@ describe Issue do ...@@ -29,7 +29,7 @@ describe Issue do
end end
describe "Validation" do describe "Validation" do
it { should ensure_length_of(:description).is_within(0..2000) } it { should ensure_length_of(:description).is_within(0..10000) }
end end
describe 'modules' do describe 'modules' do
......
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