acts_as_paranoid icon indicating copy to clipboard operation
acts_as_paranoid copied to clipboard

Add generator for installing acts_as_paranoid and creating migration

Open treydock opened this issue 12 years ago • 1 comments

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

treydock avatar May 13 '12 21:05 treydock

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!

goncalossilva avatar Nov 29 '12 14:11 goncalossilva