Hello.

I´ve tried has_many/belongs_to, but what i need is to insert a record 
automatically into ticket table every time the field status of report table is 
"NOK". The status field can be 1 or 0. When it´s 0 i need to insert that record 
on the ticket table.

I´m i making my self clear?

Best Regards,

Edson

> Date: Tue, 4 Jan 2011 16:25:30 +0100
> From: [email protected]
> To: [email protected]
> Subject: Re: [Hobo Users] Relantionship
> 
> 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.
> 
                                          

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

Reply via email to