# 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)
require 'street_address'

@addresses = ["939 W El Camino Real, Mountain View, CA",
"790 Castro St, Mountain View, CA",
"191 Castro St, Mountain View, CA",
"570 N Shoreline Blvd, Mountain View, CA",
"619 Escuela Ave, Mountain View, CA",
"4546 El Camino Real, Los Altos, CA",
"415 N Mary Ave, Sunnyvale, CA",
"730 N Rush St, Chicago, IL",
"1747 India St, San Diego, CA",
"2029 P St NW, Washington, DC",
"4918 Rainier Ave S, Seattle, WA",
"1425 NW Glisan St, Portland, OR",
"1401 E Madison St, Seattle, WA",
"550 Queen Anne Ave N, Seattle, WA",
"6000 Phinney Ave N, Seattle, WA",
"226 NW Davis St, Portland, OR",
"419 Denny Way, Seattle, WA",
"622 NW 23rd Ave, Portland, OR",
"1101 S 119th St, Omaha, NE",
"1111 Harney St, Omaha, NE",
"1501 N Saddle Creek Rd, Omaha, NE",
"715 N Saddle Creek Rd, Omaha, NE",
"1213 Howard St, Omaha, NE",
"7834 W Dodge Rd, Omaha, NE",
"4432 Leavenworth St, Omaha, NE",
"439 N Wells St, Chicago, IL",
"1927 W North Ave, Chicago, IL",
"2373 S Archer Ave, Chicago, IL",
"226 S Wabash Ave, Chicago, IL",
"5339 Murray Street, Niagara Falls, Ontario",
"1531 W Taylor St, Chicago, IL",
"984 Barret Ave, Louisville, KY",
"1 5th Ave, New York, NY",
"19 Old Fulton St, Brooklyn, NY",
"32 Spring St, New York, NY",
"278 Bleecker St, New York, NY",
"260 W 44th St, New York, NY",
"2175 Broadway, New York, NY",
"157 Wooster St, New Haven, CT",
"54 Stone St, New York, NY",
"11 Thacher St, Boston, MA",
"20 Charles St, Boston, MA",
"4 Brookline Pl, Brookline, MA",
"569 Tremont St, Boston, MA",
"43 Stanhope St, Boston, MA",
"286 Harvard St, Brookline, MA",
"799 Main St, Cambridge, MA",
"22 Merchants Row, Boston, MA",
"317 W Bryan St, Savannah, GA",
"1706 S Kings Hwy # A, Myrtle Beach, SC",
"3901 North Kings Highway Suite 1, Myrtle Beach, SC",
"1213 Blanding St, Columbia, SC",
"11 W Liberty St, Savannah, GA",
"82 Wentworth St, Charleston, SC",
"259 E Broad St, Athens, GA",
"114 Jungle Rd, Edisto Island, SC",
"2203 S Federal Hwy, Fort Lauderdale, FL",
"12151 S Apopka Vineland Rd, Orlando, FL",
"863 Washington Ave, Miami Beach, FL",
"11720 Ne 2nd Ave, North Miami, FL",
"17901 Biscayne Blvd, Aventura, FL",
"4527 Weston Rd, Weston, FL",
"13695 W Dixie Hwy, North Miami, FL",
"8080 SW 67th Ave, Miami, FL",
"2396 Ingleside Ave, Macon, GA",
"29 Highway 98 E, Destin, FL",
"810 Russell Pkwy, Warner Robins, GA",
"2525 Madison Ave, Montgomery, AL",
"6268 Atlanta Hwy, Montgomery, AL",
"1210 E Jackson St, Thomasville, GA",
"711 N Westover Blvd # G, Albany, GA",
"6100 Veterans Pkwy, Columbus, GA",
"2111 Norfolk St, Houston, TX",
"77 Harvard St, Houston, TX",
"1029 Highway 6 N # 100, Houston, TX",
"748 E 11th St, Houston, TX",
"1705 Post Oak Blvd # A, Houston, TX",
"3835 Richmond Ave, Houston, TX",
"6003 Richmond Ave, Houston, TX",
"628 Seawall Blvd, Galveston, TX",
"5610 E Mockingbird Ln, Dallas, TX",
"4721 W Park Blvd # 101, Plano, TX",
"13812 N Highway 183, Austin, TX",
"2820 N Henderson Ave, Dallas, TX",
"1500 Barton Springs Rd, Austin, TX",
"5910 N Macarthur Blvd, Irving, TX",
"3500 Guadalupe St, Austin, TX",
"508 West Ave, Austin, TX",
"623 E Adams St, Phoenix, AZ",
"770 4th Ave, San Diego, CA",
"1650 Colorado Blvd, Los Angeles, CA",
"510 S Arroyo Pkwy, Pasadena, CA",
"330 S Hope St, Los Angeles, CA",
"200 Main St # 101, Huntington Beach, CA",
"280 S Coast Hwy, Laguna Beach, CA",
"2710 S Colorado Blvd, Denver, CO",
"1310 S Broadway, Denver, CO",
"2910 E Platte Ave, Colorado Springs, CO",
"1415 Market St, Denver, CO",
"1165 13th St, Boulder, CO",
"4421 Harrison Blvd, Ogden, UT",
"1102 Pearl St, Boulder, CO",
"620 E Disk Dr, Rapid City, SD",
"100 24th St W # B, Billings, MT",
"1304 E Century Ave, Bismarck, ND",
"123 North 2nd Street, Livingston, MT",
"1524 S Broadway # 1, Minot, ND",
"1744 Grand Ave, Billings, MT",
"905 Main St, Billings, MT",
"605 Main St, Billings, MT",
"304A Caribou St, Banff, AB",
"402 Connaught Dr, Jasper, AB",
"33814 Bow Trail SW, Calgary, AB",
"2118 33 Avenue SW, Calgary, AB",
"7724 Elbow Drive SW, Calgary, AB",
"714 8 St, Canmore, AB",
"75602 4 Street NW, Calgary, AB",
"837 Main St, Canmore, AB",
"3904 Bell St, Kansas City, MO",
"6691 Delmar Blvd, St Louis, MO",
"6616 N Western Ave, Oklahoma City, OK",
"7932 Mackenzie Rd, St Louis, MO",
"7877 E 51st St, Tulsa, OK",
"9525 Manchester Rd, Webster Groves, MO",
"1493 Saint Louis Galleria, St Louis, MO",
"2450 Grand Blvd # 124, Kansas City, MO",
"10 S Sierra Madre St, Colorado Springs, CO",
"1415 Market St, Denver, CO",
"111 E 800 N, Provo, UT",
"5801 College Ave, Oakland, CA",
"1853 Solano Ave, Berkeley, CA",
"1512 Shattuck Ave, Berkeley, CA",
"300 Connecticut St, San Francisco,  CA",
"1042 Kearny St, San Francisco, CA",
"846 Divisadero St, San Francisco, CA",
"260 Valencia, San Francisco, CA",
"731 Irving St, San Francisco, CA",
"69 E 3rd Ave, San Mateo, CA",
"226 Redwood Shores Pkwy, Redwood City, CA",
"240 E 3rd Ave, San Mateo, CA",
"441 Emerson St, Palo Alto, CA",
"4115 El Camino Real, Palo Alto, CA",
"531 Cowper St, Palo Alto, CA",
"35 Bovet Rd, San Mateo, CA",
"1001 El Camino Real, Menlo Park, CA",
"334 Santana Row # 1065, San Jose, CA",
"155 W San Fernando St, San Jose, CA",
"527 S Almaden Ave, San Jose, CA",
"225 W Santa Clara St, San Jose, CA",
"638 El Camino Real, Santa Clara, CA",
"3137 Stevens Creek Blvd, San Jose, CA",
"1445 Foxworthy Ave, San Jose, CA",
"4302 Moorpark Ave, San Jose, CA"]


def create_profiles
  addresses = @addresses.sample(5).map {|address| StreetAddress::US.parse(address)}
  address = addresses.sample
  profile = Profile.create(name: Faker::Company.profession, description: Faker::Hipster.paragraph, address: "#{address.number} #{address.street}", city: address.city, state: address.state )
end

if Profile.count < 100
  100.times {create_profiles}
end
