Skip to content

Add ComponentAuthors table to database #18

Description

@seesarahcode
  • Create ComponentAuthors table
  • Add component_id column - integer
  • Add author_id column - integer
  • Components table should:
has_many :component_authors
has_many :authors, :through => :component_authors
  • Authors table should:
has_many :component_authors
has_many :components, :through => :component_authors
  • Add validations for component_id and author_id columns (presence)
  • 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