Skip to content

Make require: true the default for deleting models#1779

Merged
ricardograca merged 2 commits into
masterfrom
rg-require-destroy
Mar 4, 2018
Merged

Make require: true the default for deleting models#1779
ricardograca merged 2 commits into
masterfrom
rg-require-destroy

Conversation

@ricardograca

@ricardograca ricardograca commented Mar 3, 2018

Copy link
Copy Markdown
Member

Introduction

Change Model.destroy() so that the require: true option is the default.

Motivation

This makes .destroy() behave the same way as save() and also matches what the documentation already says.

Current PR Issues

This is a breaking change so it must be clearly marked as such and there should be some kind of document to help users with the transition to this new behavior.

Alternatives considered

Not addressing this issue right now, but that would just be delaying the inevitable. It's better to do it in a 0.x release where some breakage is expected.

@ricardograca ricardograca changed the title Rg require destroy Make require: destroy the default for deleting models Mar 3, 2018
@ricardograca ricardograca changed the title Make require: destroy the default for deleting models Make require: true the default for deleting models Mar 3, 2018

@kirrg001 kirrg001 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants