Skip to content

Commit

Permalink
Seed some sites
Browse files Browse the repository at this point in the history
  • Loading branch information
erbridge committed Oct 6, 2022
1 parent 5ddea28 commit fc77a59
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions db/seeds/002_sites.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Site.find_or_create_by!(
slug: "default-site",
) do |site|
site.name = "Normal Island"
site.domain = "#{site.slug}.lvh.me"
end

Site.find_or_create_by!(
slug: "north",
) do |site|
site.name = "North of Normal"
site.domain = "#{site.slug}.lvh.me"
end

Site.find_or_create_by!(
slug: "south",
) do |site|
site.name = "South of Normal"
site.domain = "#{site.slug}.lvh.me"
end

0 comments on commit fc77a59

Please sign in to comment.