Skip to content

Instantly share code, notes, and snippets.

@jesuslerma
Created May 19, 2017 02:38
Show Gist options
  • Save jesuslerma/f5bf65b226e5e824facaf29e4bca833a to your computer and use it in GitHub Desktop.
Save jesuslerma/f5bf65b226e5e824facaf29e4bca833a to your computer and use it in GitHub Desktop.
ropa = Category.create name: 'Ropa'
electro = Category.create name: 'Electronicos'
disco = Category.create name: 'Discos'
Product.create name: 'Playera Locochona', photo: 'https://pbs.twimg.com/profile_images/561116211258220544/FlICmGnj.jpeg', stock: 12, category_id: ropa.id
Product.create name: 'Playera Locochona', photo: 'https://pbs.twimg.com/profile_images/561116211258220544/FlICmGnj.jpeg', stock: 12, category_id: ropa.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment