Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
napster235 authored and kinduff committed Aug 28, 2023
1 parent a0cb125 commit 24a1b24
Showing 1 changed file with 26 additions and 22 deletions.
48 changes: 26 additions & 22 deletions db/seeds.rb
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
# frozen_string_literal: true

puts 'Started seeding the database...'
puts "Started seeding the database..."

GROUP_NAMES = ['Foundation Stock Service',
'Herding Group',
'Hound Group',
'Non-Sporting Group',
'Sporting Group',
'Terrier Group',
'Toy Group',
'Working Group',
'Miscellaneous Class'].freeze
GROUP_NAMES = [
"Foundation Stock Service",
"Herding Group",
"Hound Group",
"Non-Sporting Group",
"Sporting Group",
"Terrier Group",
"Toy Group",
"Working Group",
"Miscellaneous Class"
].freeze

BREEDS = ['Caucasian Shepherd Dog',
'Bouvier des Flandres',
'Grand Basset Griffon Vendéen',
'Hokkaido',
'Japanese Terrier',
'Hanoverian Scenthound',
'Tibetan Spaniel',
'Border Collie',
'Curly-Coated Retriever'].freeze
BREEDS = [
"Caucasian Shepherd Dog",
"Bouvier des Flandres",
"Grand Basset Griffon Vendéen",
"Hokkaido",
"Japanese Terrier",
"Hanoverian Scenthound",
"Tibetan Spaniel",
"Border Collie",
"Curly-Coated Retriever"
].freeze

GROUP_NAMES.each do |group_name|
Group.find_or_create_by(name: group_name)
Expand All @@ -31,7 +35,7 @@
BREEDS.each do |breed|
Breed.find_or_create_by(
name: breed,
description: 'Lorem ipsum',
description: "Lorem ipsum",
life: {
max: rand(15..20),
min: rand(10..15)
Expand All @@ -45,8 +49,8 @@
min: rand(20..30)
},
hypoallergenic: [true, false].sample,
group_id: group_ids.shuffle.first
group_id: group_ids.sample
)
end

puts 'Seeding finished!'
puts "Seeding finished!"

0 comments on commit 24a1b24

Please sign in to comment.