```ruby
require 'csv' 

School.delete_all   

csv_text = File.read('db/cfe-money-new-data-feb15.csv')
csv = CSV.parse(csv_text, :headers => true)
csv.each do |row|
  School.create!(row.to_hash)
end```

Update seed file to use endpoint link in location table item
user
```ruby
require 'csv' 
require 'faraday'

School.delete_all   

location = Location.first
url = URI(location.endpoint)
connection = Faraday.new(url: url.to_s)
response = connection.get
collection = JSON.parse(response.body)

collection.each do |item|
	location.schools << School.create!(item)
end```
assistant