Skip to content
Browse files

seeds

  • Loading branch information...
1 parent 2d29b62 commit f4265ceed51fe27e8e8b2a226481edfcf06f1550 @heartsentwined committed Oct 18, 2013
Showing with 9 additions and 7 deletions.
  1. +9 −7 db/seeds.rb
View
16 db/seeds.rb
@@ -1,7 +1,9 @@
-# This file should contain all the record creation needed to seed the database with its default values.
-# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
-#
-# Examples:
-#
-# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
-# Mayor.create(name: 'Emanuel', city: cities.first)
+User.create([
+ { email: 'foo@example.com', password: 'foopassword' },
+ { email: 'bar@example.com', password: 'barpassword' }
+])
+Post.create([
+ { title: 'post 1' },
+ { title: 'post 2' },
+ { title: 'post 3' }
+])

0 comments on commit f4265ce

Please sign in to comment.
Something went wrong with that request. Please try again.