Skip to content

Data Model

Ryan Wold edited this page Aug 22, 2023 · 10 revisions

Product Cycle


Below is a visual representation of db/schema.rb.

The diagram was generated with rails-erd

How can I update this diagram?

After making any changes to db/schema.rb, run erd to create erd.pdf. Convert that erd.pdf to .png (using OSX Preview). Then update /assets/erd.png ✅

How can I install rails-erd?

rails-erd requires Graphviz. On Mac OSX, Install graphviz using brew install graphviz. Run gem install rails-erd to install rails-erd.


Object state diagrams

Form

Submission


Service

Collection


Website

Digital Product

Digital Service Account


Collections schema

See file definition for

  • Service Providers
  • Services
  • Collections
  • OMB CX Reporting Collections

at https://github.com/GSA/touchpoints/tree/develop/docs/models