From 477915a68810bd5fbf970f0be3bf2ebdd8c059ec Mon Sep 17 00:00:00 2001 From: victorloo Date: Wed, 31 Jan 2018 15:34:01 +0800 Subject: [PATCH] add user seed data --- db/seeds.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/seeds.rb b/db/seeds.rb index 1beea2a..e4e5dca 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -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 \ No newline at end of file