search for: archivedproject

Displaying 1 result from an estimated 1 matches for "archivedproject".

2007 Jul 29
6
Isolating rails model specs from their implementation
...ect.archived? @project.archive! @project.unarchive! The current implementation of this is using a separate table of "visibilities" as follows: # Implementation 1 (Current) Tables: Project id name visibility_status_id 1 ActiveProject 1 1 ArchivedProject 2 VisibilityStatuses id name 1 Live 2 Archived But the same behavior could be implemented using a datetime column as follows: # Implementation 2 Tables: Project id name archived_at 1 ActiveProject null 1 ArchivedProject 2007-07-2...