Skip to content

Add Reminders table to database #20

Description

@seesarahcode
  • Create Reminders table
  • Add publication_id column - integer
  • Add task_id column - integer
  • Add draft_id column - integer
  • Add recipient_id column - integer
  • Add send_date column - datetime
  • Add for_author column - boolean
  • Add validation for publication_id column (presence)
  • In Publications table add: has_many :reminders
  • Reminders table should: belongs_to :publication
  • In Drafts table should: has_many :reminders
  • Reminders table add: belongs_to :draft
  • In Tasks table should: has_many :reminders
  • Reminders table add: belongs_to :task
  • Update Drafts model: when reminder_frequency is updated, delete all Reminders and rebuild team
  • Create factories
  • Write passing unit tests
  • Create seed data

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions