Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Add generator for installing acts_as_paranoid and creating migration #63

Open
wants to merge 2 commits into
base: rails3.2
Choose a base branch
from

Conversation

treydock
Copy link

This generator will add the "acts_as_paranoid" line to the model passed during generator command. It also creates the migration necessary to store the value of deleted_at

Example usage...

rails g acts_as_paranoid:install User

-- or --

rails g acts_as_paranoid:install User --column=deleted_at --column-type=time

The default value is the same as the 2nd example. So far tested with Rails 3.2.3

@goncalossilva
Copy link
Owner

Sorry for leaving this here without feedback for so long. I've been busy, but I was also struggling to decide if I thought this was really useful for most people.

Well, right now I'd say yes, but I'd love if you could do a couple of things before I add this in:

  • Add tests
  • Add a section about this in the README

Could you do this for me?

Once again: sorry for the delay, and thanks for this!

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

Successfully merging this pull request may close these issues.

2 participants