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
class Pattern < ActiveRecord::Base
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