Skip to content

Commit

Permalink
[#7] Adds Vancouver and New Westminster zones to seeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabionl committed Nov 7, 2021
1 parent 8b931c7 commit 189708b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,19 @@
Service.find_or_create_by(name: "Learning")
Service.find_or_create_by(name: "Overdose Prevention")
Service.find_or_create_by(name: "Phone")


# Zones
if Zone.find_by(name: "Vancouver").blank?
Zone.create!(
name: "Vancouver",
description: "Vancouver city zone"
)
end

if Zone.find_by(name: "New Westminster").blank?
Zone.create!(
name: "New Westminster",
description: "New Westminster city zone"
)
end

0 comments on commit 189708b

Please sign in to comment.