Frederick Cheung wrote:
> what columns does weather_observations have ? From glancing at the
> relevant bit of the internals i think an odd thing might happen if
> weather_observations itself had a start_time column of its own that
> was of a different type to the data grabbed here
> 
> Fred

I had the same thought, but while WeatherObservation has a 
start_time_id, but it doesn't have a start_time slot.  Is AR being 
clever about foreign key references?  Here's the schema:

  create_table "weather_observations", :id => false, :force => true do 
|t|
    t.integer "start_time_id"
    t.integer "end_time_id"
    t.integer "weather_station_id"
    t.float   "temperature_max_c"
    t.float   "temperature_avg_c"
    t.float   "temperature_min_c"
    t.float   "dewpoint_max_c"
    t.float   "dewpoint_avg_c"
    t.float   "dewpoint_min_c"
    t.float   "humidity_max"
    t.float   "humidity_avg"
    t.float   "humidity_min"
    t.float   "pressure_max_kpa"
    t.float   "pressure_avg_kpa"
    t.float   "pressure_min_kpa"
    t.float   "windspeed_max_mps"
    t.float   "windspeed_avg_mps"
    t.float   "gustspeed_max_mps"
    t.float   "precipitation_m"
  end
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to