I have two models Order and Transaction witht he following
and there's an order_id column in the transactions table. These models
have various associations with other models too.
When i try to delete an order though, it does not get deleted. When i
comment out the association line in the model 'has_one :transaction',
the delete works fine. Its puzzling! There are no before_destroy
callbacks on either model yet the log shows this line
SELECT * FROM `transactions` WHERE (`transactions`.order_id = 80)
this is the last line in the log. The order is not deleted and neither
is the transaction. Any idea what im doing wrong?
oh and i tried adding :dependent => :destroy on the :has_one too. That
dint work either.