From 608ca48b32bfc3648f4e18f9cf87e99d09d8428f Mon Sep 17 00:00:00 2001 From: Bertocq Date: Mon, 23 Oct 2017 21:02:23 +0200 Subject: [PATCH] Add Recounting and Expired with stats&results polls to dev seeds --- db/dev_seeds.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index 8c09923d8..ba6ad3962 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -546,6 +546,13 @@ poll = Poll.create(name: "Upcoming Poll", starts_at: 1.month.from_now, ends_at: 2.months.from_now) +puts " ✅" +print "Recounting Poll" +poll = Poll.create(name: "Recounting Poll", + # slug: "recounting-poll", + starts_at: 1.months.ago, + ends_at: 5.days.ago) + puts " ✅" print "Expired Poll" poll = Poll.create(name: "Expired Poll", @@ -553,6 +560,15 @@ poll = Poll.create(name: "Expired Poll", starts_at: 2.months.ago, ends_at: 1.month.ago) +puts " ✅" +print "Expired Poll with Stats & Results" +poll = Poll.create(name: "Expired Poll with Stats & Results", + # slug: "expired-poll-with-stats-and-results", + starts_at: 2.months.ago, + ends_at: 1.month.ago, + results_enabled: true, + stats_enabled: true) + puts " ✅" print "Creating Poll Questions"