Skip to content

Commit

Permalink
Added more categories via seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
UnchainedCommerce committed Dec 11, 2015
1 parent 84dd863 commit 7297a48
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
categories = Category.create([{ name: 'Technology', category_id: 2}])

games = Category.create(name: "Games", category_id: 1)
games = Category.create(name: "Games", category_id: 1)
technologies = Category.create(name: "Technology", category_id: 2)
art = Category.create(name: "Art", category_id: 3)
music = Category.create(name: "Music", category_id: 4)
film = Category.create(name: "Film & Video", category_id: 5)
food = Category.create(name: "Food", category_id: 6)
craft = Category.create(name: "Crafts", category_id: 7)

0 comments on commit 7297a48

Please sign in to comment.