Hi,

I have a model "Pattern" with subject and body as columns
and another "Schedule" with date, time and pattern_id(for inserting an
association to Pattern table)

I had defined it as
---------------------------------------------------------------------------------------
class Schedule < ActiveRecord::Base
   has_one :pattern
end
---------------------------------------------------------------------------------------
class Pattern < ActiveRecord::Base
   belongs_to :schedule
end
---------------------------------------------------------------------------------------

So whenever you need to create a schedule u need to a pattern also.
Then i removed the pattern which was used by a schedule.
How can i avoid this action.

I wonder then whats the reason of having these relationships
Is there any additional things reqd. for me to do

Regards,
Vimal Das


--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to