Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
add user seed data
Browse files Browse the repository at this point in the history
  • Loading branch information
victorloo committed Jan 31, 2018
1 parent d9a963e commit 477915a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
#
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
# Character.create(name: 'Luke', movie: movies.first)

10.times do |i|
user = User.create!(name: "user#{i+1}")
puts "#{user.name} created"
end

0 comments on commit 477915a

Please sign in to comment.