I’m trying to get some opinions on a design I’m floating (“rails way”
or not?). Say I’ve got an Author model in my Blog application and I
want my administrators to be able to disable authors. I don’t want to
delete authors because this would cause data integrity issues
(orphaned Author foreign key in the Post model). So my plan is to re-
task the destroy method of the AuthorsContoller to allow an
administrator to set a disabled_at timestamp on an Author instead of
actually deleting him.
What are the disadvantages to this design? One of the advantages to
this design that I see is that I don’t have to declare a new
controller method in my routes…it just fits into the REST design as
is, no? Thanks for any advice.