Increase Issue description size to 10k. Fixes #2545
This commit is contained in:
parent
569a88a456
commit
3a1022e381
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue