Rails connect custom table to a model

Posted by pepernik on Stack Overflow See other posts from Stack Overflow or by pepernik
Published on 2010-04-20T08:32:08Z Indexed on 2010/04/20 8:33 UTC
Read the original article Hit count: 189

Hey. I have a model and I would like to define association to a custom table delayed_jobs.

Example: class Message < AbstractBase belongs_to :delayed_job end

Q: How can I create a association to a custom table. Thx 10x!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about associations