On Sep 12, 9:32 pm, tispratik <[email protected]> wrote:
> Role Model:
> =========
> create_table :roles, :id => false do |t|
> t.integer :user_id
> t.integer :modul_id
> t.string :role
> end
>
There's your problem - rails expects your model to have a primary key;
your one doesn't
Fred
> Modul Model:
> ==========
> create_table :moduls do |t|
> t.string :name
> t.integer :updated_by
> t.timestamps
> end
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---