Skip to content

Add Submissions table to database #21

@seesarahcode

Description

@seesarahcode
  • Create Submissions table
  • Add draft_id column - integer
  • Add user_id column - integer
  • Add comments column - string
  • Add validation for draft_id column (presence)
  • Drafts table should: has_many :submissions
  • In Submissions table add: belongs_to :draft
  • Notifications table should: belongs_to :submission
  • In Submissions table add: has_many :notifications
  • Create factories
  • Write passing unit tests
  • Create seed data

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions