W dniu 04.01.2011 13:16, Edson pisze: > Hello there, > > I need to create system that sends reports via email. My problem is: > when it sends email when it needs to create a ticket > > How can a make a ticket table that inherits some fields from the > report table. > > Lets see: > > Report (system, status, description, date) > > Ticket [inherits all fields above, except description because it haves > is own, plus TTR (Time to resolve de problem)]. > > Can somebody help me out there?
You probably want to use has_many/ belongs_to. Regards, Joachim -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
