Page MenuHomeTometo Phabricator

Add Q/A backend boilerplating

Authored by aun on Mon, Mar 9, 2:48 PM.




  • Questions, which are what they sound like. They just have a content field
  • Inboxes, which are sort of "intermediate" states that have their purpose for when a user has not yet answered a question, but the question is in their "inbox". They have relationships with a single question and a single user.
  • Answers, which relate to Inboxes and Avatars, and contain a content field as well. Upon creating an answer, the related Inbox has its answered field set to true.

This still leaves T30, which is a bigger task than what I wanted to fit in this

Test Plan

You need to run mix ecto.migrate after localpatching this revision.

Diff Detail

rTOME Tometo
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

aun created this revision.Mon, Mar 9, 2:48 PM
Harbormaster completed remote builds in B35: Diff 64.Mon, Mar 9, 2:52 PM
aun requested review of this revision.Mon, Mar 9, 2:52 PM
This revision was not accepted when it landed; it landed in state Needs Review.Tue, Mar 10, 1:27 PM
This revision was automatically updated to reflect the committed changes.