markyv18 / bike-share

1 stars 0 forks source link

0 - Update specs to be consistent with object creation #10

Open samlandfried opened 7 years ago

samlandfried commented 7 years ago

Good: city = City.create(name: 'Denver')

city.stations.create(lat: 37.329732, long: -121.90178200000001, name: 'Turing Station', dock_count: 12, installation_date: Date.parse("8/6/2013"))

Bad: city = City.create(name: 'Denver')

station = Station.create(lat: 37.329732, long: -121.90178200000001, name: 'Turing Station', dock_count: 12, city_id: 1, installation_date: Date.parse("8/6/2013"))