summaryrefslogtreecommitdiff
path: root/db/migrate/20230404004859_add_index_spanning_users_and_reviews.rb
blob: 3ca67282a68f8bd3ae1444902640dd6f14c6dcd1 (plain)
1
2
3
4
5
class AddIndexSpanningUsersAndReviews < ActiveRecord::Migration[7.0]
  def change
    add_index(:product_reviews, [:product_id, :user_account_id], unique: true)
  end
end