diff --git a/db/web_sections.rb b/db/web_sections.rb index 57b8a915a..9683621e9 100644 --- a/db/web_sections.rb +++ b/db/web_sections.rb @@ -1,5 +1,3 @@ -WebSection.where(name: "homepage").first_or_create! -WebSection.where(name: "debates").first_or_create! -WebSection.where(name: "proposals").first_or_create! -WebSection.where(name: "budgets").first_or_create! -WebSection.where(name: "help_page").first_or_create! +%w[homepage debates proposals budgets help_page].each do |section| + WebSection.where(name: section).first_or_create! +end