Try Hash#slice or Hash#except that ActiveSupport provides. You can run:
businessPath = "#{Rails.root}/public/business2.json"
businesses = JSON.parse(File.read(businessPath))
And then you can blacklist the extra attributes
businesses.each do |business|
Business.create!(business.except(:schools, :categories, :neighborhoods, :longitude, :latitude, :type))
end
Or whitelist only the attributes you want to keep
businesses.each do |business|
Business.create!(business.slice(:name, :owner, :etc))
end