Source code file: Hospital3/db/seeds.rb:
# Create rows for doctors table. d1 = Doctor.new d1.name = "Archer" d1.office_num = 429 d1.phone_num = "222/222-2222" d1.save d2 = Doctor.new d2.name = "Patel" d2.office_num = 247 d2.phone_num = "333/333-3333" d2.save d3 = Doctor.new d3.name = "Cheng" d3.office_num = 331 d3.phone_num = "444/444-4444" d3.save # Create rows for patients table. p1 = Patient.new p1.last_name = "Murphy" p1.first_name = "Scott" p1.gender = "M" p1.phone_num = "233/423-2343" p1.doctor_id = 1 p1.save p2 = Patient.new p2.last_name = "Roberts" p2.first_name = "Kelly" p2.gender = "F" p2.phone_num = "324/874-1298" p2.doctor_id = 3 p2.save p3 = Patient.new p3.last_name = "Diaz" p3.first_name = "Judith" p3.gender = "F" p3.phone_num = "837/281-9226" p3.doctor_id = 2 p3.save p4 = Patient.new p4.last_name = "Le" p4.first_name = "Steven" p4.gender = "M" p4.phone_num = "736/283-9897" p4.doctor_id = 1 p4.save p5 = Patient.new p5.last_name = "Hardy" p5.first_name = "Mary" p5.gender = "F" p5.phone_num = "364/223-0382" p5.doctor_id = 3 p5.save p6 = Patient.new p6.last_name = "Shea" p6.first_name = "Timothy" p6.gender = "M" p6.phone_num = "372/938-8327" p6.doctor_id = 2 p6.save p7 = Patient.new p7.last_name = "Parma" p7.first_name = "Chloe" p7.gender = "F" p7.phone_num = "306/232-3928" p7.doctor_id = 1 p7.save