Created dormant automation runs table#27190
Conversation
closes https://linear.app/ghost/issue/NY-1189 This creates a table and model for Welcome Email Automation Runs. Currently unused. This change was written by Claude Sonnet 4.6 on Low effort mode against the following prompt: ``` I'm starting to build a "welcome email automations" feature. See the attached design document below for background. I've already built the `welcome_email_automations` and `welcome_email_automated_emails` tables/models. But now I need to build the `welcome_email_automation_runs` table/model. It should have the following fields: * `welcomeEmailAutomationId: string` (foreign key reference to `welcome_email_automations`) * `memberId: string` (foreign key reference to members) * `nextWelcomeEmailAutomatedEmailId: null | string` (foreign key reference to `welcome_email_automated_emails`. `null` if finished) * `readyAt: null | Date` * `stepStartedAt: null | Date` * `stepAttempts: uint` * `exitReason: null | 'member not found' | 'email send failed' | 'member unsubscribed' | 'member changed status' | 'finished'` This table and model should be dormant. That is, there should be no way to interact with it right now. We'll add all that in the future. There should be no special database indexes (other than what's automatically created on the `id` primary key and the foreign keys). Use red/green TDD to accomplish this task. <design_document> {design document copy-pasted here} </design_document> ```
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
It looks like this PR contains a migration 👀 General requirements
Schema changes
Data changes
|
|



closes https://linear.app/ghost/issue/NY-1189
This creates a table and model for Welcome Email Automation Runs. Currently unused.
This change was written by Claude Sonnet 4.6 on Low effort mode against the following prompt: