search for: visibility_status_id

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

2007 Jul 29
6
Isolating rails model specs from their implementation
...Project.active_projects Project.archived_projects @project.active? @project.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 arc...