On Apr 20, 1:24 am, Fearless Fool <[email protected]> wrote:
> The call that generated the error was an ActiveRecord#update():
>
> active_record.update_attributes(attributes)
>
> where attributes (in this instance) were:
>
> {:start_time_id=>10991, :end_time_id=>11021, :service_address_id=>46,
> :metered_service_id=>97, :quantity=>"119700", :cost=>"12603.46"}
>
> So the question is: why would ActiveRecord#update() generate SQL
> referring to the non-existent id column? And how do I make it stop?
>
It is a pretty fundamental assumption of Active Record that tables
have a primary key. There is (or at least there used to be) a plugin
out there that added support for composite primary keys
Fred
--
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.