Added dependent: :destroy to models