search for: weather_st

Displaying 1 result from an estimated 1 matches for "weather_st".

2011 Apr 15
2
sti + namespace
...ther data, but most of the code is can be shared in the WeatherStation parent class. Ergo STI. But there are a lot of weather services, so I''d like to gather all the subclasses into a subdirectory (that''s aka namespace, right?). The table will be something like: create_table :weather_stations do |t} t.string :callsign t.string :type # for STI t.timestamp attempted_at # be nice to webmasters t.timestamp succeeded_at end ... and my directory structure is: apps/models/WeatherStation.rb apps/models/weather_stations/noaa.rb apps/models/weather_stations/cwop.rb app...