On Mar 17, 2011, at 8:33 AM, Chandu80 wrote:

(The table invitation_workflows has the following
columns
(invitation_workflow_id
,invitor_id,invited_whom_id,invited_for_channel_id,invite_status)
What exactly is the problem here,can't get by what it means.

Thanks in Advance

What the error says is you do not have an id column. All tables which back an ActiveRecord Model must include an auto-incrementing primary key, by tradition named 'id'. There are no exceptions to this as far as I know.

If you are making a "join model", then you also have to have an id. The only exception would be a habtm relationship join, which by definition can only have two columns: model_a_id and model_b_id.

Walter

--
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