Added dependent: :restrict_with_error in all has_many models.