Skip to content

Seed database after configuring triggers - #189

Merged
mbrandonw merged 2 commits into
pointfreeco:mainfrom
acosmicflamingo:seed-after-trigger-setup
Sep 16, 2025
Merged

mbrandonw merged 2 commits into
pointfreeco:mainfrom
acosmicflamingo:seed-after-trigger-setup

Conversation

@acosmicflamingo

Copy link
Copy Markdown
Contributor

No description provided.

})
.execute(db)

if context == .preview {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I switched this to only seeding in previews cause it turns out we seed in tests already. and probably best to leave tests responsible for seeding, especially if they want to seed differently from previews.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, it's actually why I asked but I should've mentioned my reasoning in Slack. Great!

@mbrandonw
mbrandonw merged commit 368fb3c into pointfreeco:main Sep 16, 2025
@acosmicflamingo
acosmicflamingo deleted the seed-after-trigger-setup branch September 16, 2025 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants