Updated seed file

This commit is contained in:
Dan Elbert 2016-10-21 09:41:59 -05:00
parent b09b3eb196
commit 64b8e03ea6

View File

@ -47,6 +47,16 @@ ingredients.each do |k, v|
ingredients[k] = Ingredient.create!({user_id: dan.id}.merge(v)) ingredients[k] = Ingredient.create!({user_id: dan.id}.merge(v))
end 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!({ bb = Recipe.create!({
name: 'Beef and Broccoli With Oyster Sauce', 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', 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 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', 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]}, {quantity: '1/4', units: 'cup', preparation: 'divided', ingredient: ingredients[:soy_sauce]},