Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file should contain all the record creation needed to seed the database with its default values.
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
- #
- # Examples:
- #
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
- # Mayor.create(name: 'Emanuel', city: cities.first)
- admin = Employee.create!([{
- is_admin: true,
- first_name: "Kenneth",
- last_name: "The Paige",
- email: "test@example.com",
- password: "12345678",
- password_confirmation: "12345678",
- address_attributes:
- {
- street_address: "123 Chuckleburger drive",
- city: "New York",
- state: "NY",
- zip: "00001"
- },
- primary_phone_attributes:
- {
- area_code: "111",
- number: "555-1212"
- },
- secondary_phone_attributes:
- {
- area_code: "111",
- number: "555-2121"
- },
- primary_fax_attributes:
- {
- area_code: "111",
- number: "555-2100"
- }
- }])
- residents = Resident.create!([{
- employee_id: 1,
- first_name: "bob",
- last_name: "hope",
- dob: "#{Date.today - 43}",
- marital_status: "Married",
- religious_preferences: "none",
- insurance_info: "medicaid",
- veteran_status_number: "123-090",
- burial_provisions: "cremation",
- admission_weight: "164 lbs",
- admission_height: "5ft 9in", allergies: "none",
- address_attributes:
- {
- street_address: "53 birdies way",
- city: "palm springs",
- state: "ca",
- zip: "99009"
- },
- primary_phone_attributes:
- {
- area_code: "123",
- number: "555-2947"
- },
- secondary_phone_attributes:
- {
- area_code: "123",
- number: "555-0213"
- },
- primary_fax_attributes:
- {
- area_code: "123",
- number: "555-9000"
- },
- doctor_attributes:
- {
- first_name: "leo",
- last_name: "spaceman",
- email: "spaceman@example.com",
- start_date: "#{Date.today - 28}",
- end_date: "",
- address_attributes:
- {
- street_address: "30 Rockefeller Center Plaza",
- city: "new York",
- state: "ny",
- zip: "00001"
- },
- primary_phone_attributes:
- {
- area_code: "111",
- number: "555-1000"
- },
- secondary_phone_attributes:
- {
- area_code: "111",
- number: "555-1001"
- },
- primary_fax_attributes:
- {
- area_code: "111",
- number: "555-1111"
- }
- },
- designated_representative_attributes:
- {
- first_name: "willie",
- last_name: "wilkonson",
- email: "willy_desrep@example.com",
- address_attributes:
- {
- street_address: "85891 hwy 22",
- city: "flint",
- state: "mi",
- zip: "48785"
- },
- primary_phone_attributes:
- {
- area_code: "111",
- number: "423-9876"
- },
- secondary_phone_attributes:
- {
- area_code: "111",
- number: "668-0948"
- },
- primary_fax_attributes:
- {
- area_code: "111",
- number: "423-9000"
- }
- },
- guardian_attributes:
- {
- first_name: "bob",
- last_name: "steele",
- email: "guardian_bob@example.com",
- address_attributes:
- {
- street_address: "8472 Hickabilly terrace",
- city: "flint",
- state: "mi",
- zip: "47463"
- },
- primary_phone_attributes:
- {
- area_code: "998",
- number: "897-5617"
- },
- secondary_phone_attributes:
- {
- area_code: "998",
- number: "897-5618"
- },
- primary_fax_attributes:
- {
- area_code: "998",
- number: "897-5600"
- },
- },
- hospital_attributes:
- {
- name: "hurley",
- email: "hurley@example.com",
- address_attributes:
- {
- street_address: "554 medical center drive",
- city: "flint",
- state: "mi",
- zip: "48705"
- },
- primary_phone_attributes:
- {
- area_code: "810",
- number: "555-6600"
- },
- secondary_phone_attributes:
- {
- area_code: "810",
- number: "555-6500"
- },
- primary_fax_attributes:
- {
- area_code: "810",
- number: "555-6000"
- }
- },
- primary_emergency_contact_attributes:
- {
- first_name: "jethro",
- last_name: "lippincot",
- email: "lippinro86@example.com",
- address_attributes:
- {
- street_address: "19 willowbranch trail",
- city: "flint",
- state: "mi",
- zip: "46685"
- },
- primary_phone_attributes:
- {
- area_code: "810",
- number: "767-9209"
- },
- secondary_phone_attributes:
- {
- area_code: "810",
- number: "767-0951"
- },
- primary_fax_attributes:
- {
- area_code: "810",
- number: "767-9200"
- }
- },
- secondary_emergency_contact_attributes:
- {
- first_name: "liquinta",
- last_name: "henderson",
- email: "qqhenderson@example.com",
- address_attributes:
- {
- street_address: "4429 open platts circle",
- city: "flint",
- state: "mi",
- zip: "58932"
- },
- primary_phone_attributes:
- {
- area_code: "989",
- number: "798-4326"
- },
- secondary_phone_attributes:
- {
- area_code: "989",
- number: "340-5896"
- },
- primary_fax_attributes:
- {
- area_code: "989",
- number: "340-0909"
- },
- }
- }])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement