lib/gtfs/realtime/calendar_date.rb in gtfs-realtime-0.3.0 vs lib/gtfs/realtime/calendar_date.rb in gtfs-realtime-0.4.0
- old
+ new
@@ -2,9 +2,9 @@
class Realtime
class CalendarDate < GTFS::Realtime::Model
ADDED = 1
REMOVED = 2
- many_to_one :trip, primary_key: :service_id, key: :service_id
+ belongs_to :trip, primary_key: :service_id, foreign_key: :service_id
end
end
end
\ No newline at end of file