Spotter-VM/lxc-apps/crisiscleanup/install/crisiscleanup_conf/db/seeds.rb

24 lines
45 KiB
Ruby
Raw Normal View History

Form.create!([
{legacy_event_id: 1, html: "<!--Demo Waiting List Form Last Updated: 2016-06-13 16:50:36. Heroku Format-->\r\n<p><strong>Demo Waiting List</strong>: Enter property damage and needs. <u>No sensitive information!</u> Tell the client this information will be shared with many organizations to provide service as fast as possible, which may be several weeks. Service is not guaranteed.</p>\r\n\r\n<div class=\"row\">\r\n <div class=\"small-12 medium-12 large-12 columns\">\r\n <h4>Property and Personal Information <span data-tooltip aria-haspopup=\"true\" class=\"has-tip tip-bottom\" title=\"<u>Crisis Cleanup is about property, not people.</u> <br /><strong>Never include SSNs, FEMA numbers, dates of birth, detailed medical information, etc.</strong>\"><i class=\"fa fa-question\"></i></span></h4>\r\n </div>\r\n</div>\r\n<div class=\"unhide\" id=\"property_info\">\r\n<div class=\"row\">\r\n <div class=\"input datetime-local optional legacy_legacy_site_request_date\">\r\n <div class=\"small-4 medium-4 large-4 columns\">\r\n <label class=\"\" for=\"legacy_legacy_site_request_date\">Request Date <small>(<a href=\"#\" onclick=\"document.getElementById('legacy_legacy_site_request_date').readOnly=false; document.getElementById('legacy_legacy_site_request_date').focus(); return false;\">edit</a>)</small></label>\r\n </div>\r\n <div class=\"small-8 medium-8 large-8 columns\">\r\n <input class=\"datetime-local optional\" type=\"text\" name=\"legacy_legacy_site[request_date]\" id=\"legacy_legacy_site_request_date\" readonly />\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"input string optional legacy_legacy_site_name\">\r\n <div class=\"small-4 medium-4 large-4 columns\">\r\n <label class=\"\" for=\"legacy_legacy_site_name\">Resident Name <span data-tooltip aria-haspopup=\"true\" class=\"has-tip tip-bottom\" title=\"This may be the primary contact, resident, or owner.\"><i class=\"fa fa-question\"></i></span></label>\r\n </div>\r\n <div class=\"small-8 medium-8 large-8 columns\">\r\n <input class=\"string optional\" type=\"text\" name=\"legacy_legacy_site[name]\" id=\"legacy_legacy_site_name\" />\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"input string optional legacy_legacy_site_address\">\r\n <div class=\"small-4 medium-4 large-4 columns\">\r\n <label class=\"\" for=\"legacy_legacy_site_address\">Street Address</label>\r\n </div>\r\n <div class=\"small-8 medium-8 large-8 columns\">\r\n <input class=\"string optional\" type=\"text\" name=\"legacy_legacy_site[address]\" id=\"legacy_legacy_site_address\" />\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"input string optional legacy_legacy_site_city\">\r\n <div class=\"small-4 medium-4 large-4 columns\">\r\n <label class=\"\" for=\"legacy_legacy_site_city\">City</label>\r\n </div>\r\n <div class=\"small-8 medium-8 large-8 columns\">\r\n <input class=\"string optional\" type=\"text\" name=\"legacy_legacy_site[city]\" id=\"legacy_legacy_site_city\" />\r\n </div>\r\n </div>\r\n</div>\r\n<div class=\"row\">\r\n <div class=\"input string required legacy_legacy_site_county\">\r\n <div class=\"small-4 medium-4 large-4 columns\">\r\n <label class=\"\" for=\"legacy_legacy_site_county\"><abbr title=\"required\">*</abbr> County <span data-tooltip aria-haspopup=\"true\" class=\"has-tip tip-bottom\" title=\"County is used for reporting purposes. Please do not edit unless you are sure it is incorrect.\"><i class=\"fa fa-question\"></i></span> <small>(<a href=\"#\" onclick=\"document.getElementById('legacy_legacy_site_county').readOnly=false; document.getElementById('legacy_legacy_site_county').focus(); return false;\">edit</a>)</small></label>\r\n </div>\r\n <div class=\"small-8 medium-8 large-8 columns\">\r\n <input class=\"string requi
])
Legacy::LegacyContact.create!([
{email: "demo@crisiscleanup.org", first_name: "Demo", last_name: "User", legacy_organization_id: 2, is_primary: false, phone: "(555) 555-5555", appengine_key: nil, title: nil, organizational_title: nil}
])
Legacy::LegacyEvent.create!([
{case_label: "A", counties: [], name: "Demo Incident", short_name: "demo", created_date: "2016-05-31", start_date: "2016-05-31", end_date: nil, num_sites: nil, reminder_contents: "", reminder_days: nil, timestamp_last_login: nil, appengine_key: nil}
])
Legacy::LegacyOrganization.create!([
{activate_by: nil, activated_at: nil, activation_code: nil, address: "", admin_notes: nil, city: "", deprecated: false, email: "", facebook: "", is_active: true, is_admin: true, latitude: nil, longitude: nil, name: "Admin Org", not_an_org: false, only_session_authentication: false, org_verified: true, password: nil, permissions: nil, phone: nil, physical_presence: nil, publish: nil, reputable: nil, state: "", terms_privacy: nil, timestamp_login: nil, timestamp_signup: nil, twitter: "", url: "", voad_referral: nil, work_area: nil, zip_code: "", voad_member: nil, mold_treatment: nil, tree_removal: nil, design: nil, replace_appliances: nil, canvass: nil, sanitizing: nil, exterior_debris: nil, water_pumping: nil, appropriate_work: nil, reconstruction: nil, interior_debris: nil, assessment: nil, muck_out: nil, permission: nil, refurbishing: nil, clean_up: nil, mold_abatement: nil, permits: nil, replace_furniture: nil, gutting: nil, number_volunteers: nil, primary_contact_email: nil, voad_member_url: nil, appengine_key: nil, referral: "", publishable: false, _password_hash_list: nil, does_damage_assessment: false, does_intake_assessment: nil, does_cleanup: false, does_follow_up: false, does_minor_repairs: false, does_rebuilding: false, does_coordination: false, government: false, does_other_activity: false, where_are_you_working: "", accepted_terms: true, accepted_terms_timestamp: "2017-09-18 20:46:30", review_other_organizations: false, situational_awareness: nil, does_recovery: nil, does_only_coordination: nil, does_only_sit_aware: nil, does_something_else: nil},
{activate_by: nil, activated_at: nil, activation_code: nil, address: "", admin_notes: nil, city: "", deprecated: false, email: "", facebook: "", is_active: false, is_admin: false, latitude: nil, longitude: nil, name: "Demo Org", not_an_org: true, only_session_authentication: false, org_verified: false, password: nil, permissions: nil, phone: nil, physical_presence: nil, publish: nil, reputable: nil, state: "", terms_privacy: nil, timestamp_login: nil, timestamp_signup: nil, twitter: "", url: "", voad_referral: nil, work_area: nil, zip_code: "", voad_member: nil, mold_treatment: nil, tree_removal: nil, design: nil, replace_appliances: nil, canvass: nil, sanitizing: nil, exterior_debris: nil, water_pumping: nil, appropriate_work: nil, reconstruction: nil, interior_debris: nil, assessment: nil, muck_out: nil, permission: nil, refurbishing: nil, clean_up: nil, mold_abatement: nil, permits: nil, replace_furniture: nil, gutting: nil, number_volunteers: nil, primary_contact_email: nil, voad_member_url: nil, appengine_key: nil, referral: "", publishable: false, _password_hash_list: nil, does_damage_assessment: true, does_intake_assessment: nil, does_cleanup: true, does_follow_up: true, does_minor_repairs: true, does_rebuilding: true, does_coordination: true, government: true, does_other_activity: true, where_are_you_working: "Houston", accepted_terms: true, accepted_terms_timestamp: "2017-09-18 20:46:30", review_other_organizations: true, situational_awareness: nil, does_recovery: nil, does_only_coordination: nil, does_only_sit_aware: nil, does_something_else: nil}
])
Legacy::LegacyOrganizationEvent.create!([
{legacy_organization_id: 1, legacy_event_id: 1},
{legacy_organization_id: 2, legacy_event_id: 1}
])
Legacy::LegacySite.create!([
{address: "200 Epcot Center Drive", blurred_latitude: 28.3849506927356, blurred_longitude: -81.5443968549352, case_number: "A7", city: "Orlando", claimed_by: 2, legacy_event_id: 1, latitude: 28.383045, longitude: -81.5485919, name: "Timothy Schmidt", phone1: "1234567890", reported_by: 2, requested_at: nil, state: "Florida", status: "Open, unassigned", work_type: "Debris", data: {"email"=>"", "notes"=>"", "habitable"=>"n", "assigned_to"=>"", "electricity"=>"n", "prepared_by"=>"", "rent_or_own"=>"", "unsafe_roof"=>"n", "cross_street"=>"", "status_notes"=>"", "time_to_call"=>"", "older_than_60"=>"n", "other_hazards"=>"", "roof_collapse"=>"n", "special_needs"=>"", "num_trees_down"=>"0", "num_wide_trees"=>"0", "chainsaw_needed"=>"n", "first_responder"=>"n", "autofill_disable"=>"", "electrical_lines"=>"n", "total_volunteers"=>"", "destruction_level"=>"", "meal_location_poc"=>"", "do_not_work_before"=>"", "meal_serving_times"=>"", "structural_problems"=>"n", "required_daily_meals"=>"", "work_without_resident"=>"n", "interior_debris_removal"=>"n", "unsalvageable_structure"=>"n", "heavy_machinary_required"=>"n", "vegitative_debris_removal"=>"n", "hours_worked_per_volunteer"=>"", "initials_of_resident_present"=>"", "nonvegitative_debris_removal"=>"n", "member_of_assessing_organization"=>"n"}, request_date: "2017-09-18", appengine_key: nil, zip_code: "32821", county: "Orange County", phone2: "", work_requested: "", name_metaphone: "TM0 SXMTT", city_metaphone: "ORLNT", county_metaphone: "ORNJ KNT", address_metaphone: " EPKT SNTR TRF", user_id: 2}
])
User.create!([
2018-04-21 22:30:25 +02:00
{email: "${CRISISCLEANUP_ADMIN_EMAIL}", password: "${CRISISCLEANUP_ADMIN_PWD}", name: "${CRISISCLEANUP_ADMIN_USER}", reset_password_token: nil, reset_password_sent_at: nil, remember_created_at: nil, sign_in_count: 1, legacy_organization_id: 1, current_sign_in_at: "2016-07-15 03:45:59", last_sign_in_at: "2016-06-08 16:56:37", current_sign_in_ip: "1.1.1.1", last_sign_in_ip: "173.164.56.105", referring_user_id: nil, admin: true, role: nil, mobile: nil, accepted_terms: true, accepted_terms_timestamp: "2017-09-18 20:46:31", title: nil}
])