Add Recounting and Expired with stats&results polls to dev seeds
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user