Comment out slug assignment until Poll slug feature is ported back from madrid's fork

This commit is contained in:
Bertocq
2017-10-13 14:42:43 +02:00
parent 29cac6b93b
commit 99471a3d15

View File

@@ -525,14 +525,14 @@ puts " ✅"
print "Active Polls"
(1..3).each do |i|
poll = Poll.create(name: "Active Poll #{i}",
slug: "active-poll-#{i}",
# slug: "active-poll-#{i}",
starts_at: 1.month.ago,
ends_at: 1.month.from_now,
geozone_restricted: false)
end
(1..5).each do |i|
poll = Poll.create(name: "Active Poll #{i}",
slug: "active-poll-#{i}",
# slug: "active-poll-#{i}",
starts_at: 1.month.ago,
ends_at: 1.month.from_now,
geozone_restricted: true,
@@ -542,14 +542,14 @@ end
puts ""
print "Upcoming Poll"
poll = Poll.create(name: "Upcoming Poll",
slug: "upcoming-poll",
# slug: "upcoming-poll",
starts_at: 1.month.from_now,
ends_at: 2.months.from_now)
puts ""
print "Expired Poll"
poll = Poll.create(name: "Expired Poll",
slug: "expired-poll",
# slug: "expired-poll",
starts_at: 2.months.ago,
ends_at: 1.month.ago)