Remove people proposal model
This model isn't used anywhere, since it was created as part of a
feature which couldn't be completed.
This commit reverts commit 46e5d6a9.
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
section "Creating legislation people proposals" do
|
||||
10.times do
|
||||
Legislation::PeopleProposal.create!(title: Faker::Lorem.sentence(3).truncate(60),
|
||||
description: Faker::Lorem.paragraphs.join("\n\n"),
|
||||
summary: Faker::Lorem.paragraph,
|
||||
author: User.all.sample,
|
||||
process: Legislation::Process.all.sample,
|
||||
terms_of_service: "1",
|
||||
validated: rand <= 2.0 / 3,
|
||||
selected: rand <= 1.0 / 3)
|
||||
end
|
||||
end
|
||||
@@ -11,8 +11,6 @@ section "Creating collaborative legislation" do
|
||||
debate_end_date: Date.current + (i - 5).days,
|
||||
proposals_phase_start_date: Date.current + (i - 7).days,
|
||||
proposals_phase_end_date: Date.current + (i - 5).days,
|
||||
people_proposals_phase_start_date: Date.current + (i - 7).days,
|
||||
people_proposals_phase_end_date: Date.current + (i - 5).days,
|
||||
draft_publication_date: Date.current + (i - 3).days,
|
||||
allegations_start_date: Date.current + (i - 2).days,
|
||||
allegations_end_date: Date.current + (i - 1).days,
|
||||
@@ -22,7 +20,6 @@ section "Creating collaborative legislation" do
|
||||
draft_publication_enabled: true,
|
||||
result_publication_enabled: true,
|
||||
proposals_phase_enabled: true,
|
||||
people_proposals_phase_enabled: true,
|
||||
published: true)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user