Skip to content

Commit d3eaf2c

Browse files
committed
Merge pull request #356 from alphagov/increase-length-government-response
Increase length of the government response field
2 parents 9759e5d + fe1d23a commit d3eaf2c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/models/government_response.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class GovernmentResponse < ActiveRecord::Base
33

44
validates :petition, presence: true
55
validates :summary, presence: true, length: { maximum: 200 }
6-
validates :details, length: { maximum: 4000 }, allow_blank: true
6+
validates :details, length: { maximum: 5000 }, allow_blank: true
77

88
after_create do
99
petition.touch(:government_response_at)

spec/models/government_response_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
it { is_expected.to validate_presence_of(:petition) }
2020
it { is_expected.to validate_presence_of(:summary) }
2121
it { is_expected.to validate_length_of(:summary).is_at_most(200) }
22-
it { is_expected.to validate_length_of(:details).is_at_most(4000) }
22+
it { is_expected.to validate_length_of(:details).is_at_most(5000) }
2323
end
2424

2525
describe "callbacks" do

0 commit comments

Comments
 (0)