Skip to content

Commit

Permalink
Update Seeds file to create valid Links
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaspar committed Aug 5, 2017
1 parent 0688727 commit c8dcbc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)

# Generate a user
user = User.create name: 'John', email: 'johndoe@gmail.co', password: 'password'

# Generate a couple links
Link.create url: 'http://graphql.org/', description: 'The Best Query Language'
Link.create url: 'http://dev.apollodata.com/', description: 'Awesome GraphQL Client'
Link.create url: 'http://graphql.org/', description: 'The Best Query Language', user: user
Link.create url: 'http://dev.apollodata.com/', description: 'Awesome GraphQL Client', user: user

0 comments on commit c8dcbc2

Please sign in to comment.