summaryrefslogtreecommitdiff
path: root/db/migrate/20250101141642_add_unique_index_to_scores.rb
blob: 2991059144620b33efee894be69198d969ab18a9 (plain)
1
2
3
4
5
6
7
8
class AddUniqueIndexToScores < ActiveRecord::Migration[8.0]
  def change
    add_index :scores,
              [ :tartiflette_id, :scoring_criterium_id, :session_id ],
              unique: true,
              name: "index_scores_on_tartiflette_criterium_session"
  end
end
Copyright 2019--2025 Marius PETER