complete reviews system (phases 4-6)
All checks were successful
deploy / deploy (push) Successful in 1m4s
All checks were successful
deploy / deploy (push) Successful in 1m4s
- review display: photos with lightbox, verified badge, pagination - admin moderation: pending/approved/rejected tabs, bulk actions, nav badge - SEO: JSON-LD AggregateRating and Review markup on product pages - automation: review request emails 7 days after delivery (Oban worker) - rating cache: avg/count fields on products, updated on approval - fix file size validation in media test (10MB limit) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
defmodule Berrypod.Repo.Migrations.AddRatingCacheToProducts do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table(:products) do
|
||||
add :rating_avg, :decimal, precision: 2, scale: 1
|
||||
add :rating_count, :integer, default: 0
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user