Skip to content

Commit

Permalink
seed support users
Browse files Browse the repository at this point in the history
  • Loading branch information
Devan committed Oct 24, 2017
1 parent 8a19666 commit 61753c6
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 12 deletions.
Binary file added app/assets/images/c-3po.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/chopper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/r2-d2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/r2-kt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 47 additions & 12 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,50 @@
puts 'CREATED ADMIN USER: ' << user.email


password = 'pass123'
4.times do
u = User.create(
name: Faker::StarWars.character,
email: Faker::StarWars.specie+"@yahoo.com",
password: password,
password_confirmation: password,
quote: Faker::StarWars.quote,
)
puts "Created #{u.email}, who says: #{u.quote}."

end
password = 'pass1234'

devan = User.create(
name: "Devan Moylan",
email: "[email protected]",
password: password,
password_confirmation: password,
quote: "Welcome to Star Support! Yeesssssss! Free to talk to any of our star support droids or use two browsers to experience Asynchronous Chat with ActionCable chat with yourself, you are. Yeesssssss! Yeesssssss! A user of a new message if the user doesn't have an opened window or it's minimized, you'll notice functionality to notify."
)

puts "Created #{ devan.name}, who says: #{ devan.quote}."

c_3po = User.create(
name: "C-3PO",
email: "[email protected]",
password: password,
password_confirmation: password,
quote: "Don't blame me. I'm an interpreter. I'm not supposed to know a power socket from a computer terminal.",
)
puts "Created #{ c_3po.name}, who says: #{ c_3po.quote}."

r2_d2 = User.create(
name: "R2-D2",
email: "[email protected]",
password: password,
password_confirmation: password,
quote: "Wuup woob, weepwoopwub... waaaaaargh.",
)
puts "Created #{ r2_d2.name}, who says: #{ r2_d2.quote}."

chooper = User.create(
name: "Chooper",
email: "[email protected]",
password: password,
password_confirmation: password,
quote: "Bleep Bleep Bloop.",
)
puts "Created #{ chooper.name}, who says: #{ chooper.quote}."

r2_kt = User.create(
name: "R2-KT",
email: "[email protected]",
password: password,
password_confirmation: password,
quote: "Beep bloop blop bleep boop.",
)
puts "Created #{ r2_kt.name}, who says: #{ r2_kt.quote}."

0 comments on commit 61753c6

Please sign in to comment.