For suppose I have three database table eg:
recruiters
------------------------------------
recruiter_id | name | email |
------------------------------------
1 | xyz | x@gmail.com |
------------------------------------
companies
------------------------------------
company_id | recruiter_id | c_name |
------------------------------------
1 | 1 | abc |
------------------------------------
posts
------------------------------------
post_id | company_id | post_title |
------------------------------------
1 | 1 | etc |
------------------------------------
This is my database.
Now I need at first I signup then create 1 or 2 or 3 companies into one
recruiter_id then create post into company_id.
Database already created but How can I relation this model.
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/436ceeec64b2a3bd6f311681d4c14e30%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment