Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a deleted_at property #2

Open
olvlvl opened this issue Jul 21, 2014 · 0 comments
Open

Add a deleted_at property #2

olvlvl opened this issue Jul 21, 2014 · 0 comments

Comments

@olvlvl
Copy link
Member

olvlvl commented Jul 21, 2014

It's time to prepare the module for trash management. A deleted_at column should be added and used by the visible scope. Add the deleted and not_deleted scopes. Add a is_deleted getter. Maybe add a restore() method to restore a deleted record from the trash.

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

No branches or pull requests

1 participant