Updated seed file
This commit is contained in:
parent
b09b3eb196
commit
64b8e03ea6
12
db/seeds.rb
12
db/seeds.rb
@ -47,6 +47,16 @@ ingredients.each do |k, v|
|
||||
ingredients[k] = Ingredient.create!({user_id: dan.id}.merge(v))
|
||||
end
|
||||
|
||||
g = Recipe.create!({
|
||||
name: 'Guacamole',
|
||||
yields: '1 cup',
|
||||
total_time: 15,
|
||||
active_time: 15,
|
||||
user_id: dan.id
|
||||
})
|
||||
|
||||
g.tag_names = ['vegan', 'vegetarian', 'appetizer']
|
||||
|
||||
bb = Recipe.create!({
|
||||
name: 'Beef and Broccoli With Oyster Sauce',
|
||||
source: 'http://www.seriouseats.com/recipes/2012/06/chinese-american-beef-and-broccoli-with-oyster-sauce-recipe.html',
|
||||
@ -56,6 +66,8 @@ bb = Recipe.create!({
|
||||
user_id: dan.id
|
||||
})
|
||||
|
||||
bb.tag_names = ['beef', 'dinner', 'stirfry']
|
||||
|
||||
[
|
||||
{quantity: '1', units: 'pound', preparation: 'flank steak, skirt steak, hanger steak, or flap meat, cut into 1/4-inch thick strips', ingredient: ingredients[:flank]},
|
||||
{quantity: '1/4', units: 'cup', preparation: 'divided', ingredient: ingredients[:soy_sauce]},
|
||||
|
Loading…
Reference in New Issue
Block a user