[P1] DB 스키마 마이그레이션 Part 2 (결제/커뮤니티)

ID: ecb1e1f5-805c-4219-aff7-f628fcd6ad88

높음 리뷰

## 설명\nPRD Section 8.5~8.6, 8.10~8.15 마이그레이션.\n\n## 변경 사항 (PRD v2.1)\n- subscriptions 테이블 삭제 → cohort_applications 테이블로 대체\n- b2b_inquiries 테이블 추가\n- payments 테이블: subscription_id → cohort_id, plan 컬럼 제거\n\n## 포함 테이블\ncohort_applications, b2b_inquiries, payments, ai_conversations, cohorts, cohort_enrollments, showcase_services, community_posts, community_comments\n\n## 참조\n- PRD: Section 8.5~8.6, 8.10~8.15\n- 스킬: `database-migrations`\n\n## 완료 기준\n- [ ] `bin/rails db:migrate` 성공\n- [ ] cohort_applications 테이블 (status, motivation, current_job, expectation)\n- [ ] b2b_inquiries 테이블 (company_name, contact_name, contact_email, message)\n- [ ] payments 테이블 (cohort_id 참조, subscription_id 없음)\n- [ ] 모든 외래키/인덱스 설정\n- [ ] 모델 연관관계 설정 완료\n- [ ] fixture 파일 생성, 모델 테스트 통과\n\n## 의존성\n- [P1] DB 스키마 마이그레이션 Part 1

첨부 이미지

이미지 추가 (Ctrl+V로 붙여넣기 또는 클릭)

JPEG, PNG, GIF, WebP / 최대 10MB

담당자: 팀리드
생성일: 2026년 03월 25일 11:51

활동 로그

  • 팀리드 팀 작업 완료 - DB Part 2 + 라우트 설정

    2026년 03월 26일 08:07:09

    상세 보기

    ## 수정된 기능
    - DB Part 2: 9개 테이블 (cohorts, cohort_applications, b2b_inquiries, payments, ai_conversations, cohort_enrollments, showcase_services, community_posts, community_comments) + 모델 + 연관관계
    - 라우트: PRD Section 10 전체 194개 라우트 + 37개 스텁 컨트롤러

    ## 테스트 결과
    - developer-1 (DB Part 2): 143 runs, 237 assertions, 0 failures
    - developer-2 (라우트): 257 runs, 768 assertions, 0 failures

    ## 해결된 문제
    - FK cascade: Project 삭제 시 ai_conversations destroy 처리
    - registrations → signup 경로 변경에 따른 뷰/테스트 업데이트
    - Admin::BaseController 패턴으로 admin 권한 분리

    ## 남은 이슈
    - 없음

  • 팀리드 상태 변경: 진행 중 → 리뷰

    2026년 03월 26일 08:06:57

  • D
    developer-1 DB 마이그레이션 Part 2 완료

    2026년 03월 26일 08:05:14

    상세 보기

    ## 변경 사항
    - 9개 테이블 생성: cohorts, cohort_applications, b2b_inquiries, payments, ai_conversations, cohort_enrollments, showcase_services, community_posts, community_comments
    - 9개 모델 + User/Project 모델 연관관계 추가
    - 143 runs, 237 assertions, 0 failures, 0 errors
    - rollback + re-migrate 검증 완료

    ## 변경 파일
    - db/migrate/ - 9개 마이그레이션
    - app/models/ - 9개 모델 + user.rb, project.rb
    - test/models/ - 9개 테스트 + user_test.rb
    - test/fixtures/ - 9개 fixture

  • 팀리드 위임: developer-1에게 'DB 마이그레이션 Part 2 — cohorts, cohort_applications, b2b_inquiries, payments, ai_conversations, cohort_enrollments, showcase_services, community_posts, community_comments' 작업 배정

    2026년 03월 26일 07:56:54

  • 팀리드 작업 시작 - DB Part 2 + 라우트 설정 병렬 진행

    2026년 03월 26일 07:55:40

    상세 보기

    ## 작업 계획
    - 목표: DB Part 2 (결제/커뮤니티 9개 테이블) + 전체 라우트 설정 병렬 구현
    - 접근 방식: developer-1 → DB Part 2, developer-2 → 라우트 설정

    ## 현재 상태
    - 보드 현황: backlog 30 / todo 5 / in_progress 2 / review 11 / done 3
    - 관련 기존 작업: DB Part 1 (review), Auth (review), User 모델 (review), 온보딩 (review)

  • 팀리드 티켓 클레임 완료

    2026년 03월 26일 07:55:32

  • 팀리드 상태 변경: 할 일 → 백로그

    2026년 03월 25일 11:56:52