mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
chore: Make sure survey items are uniq by survey item ids
This commit is contained in:
parent
848fccf55f
commit
830b7bdfea
3 changed files with 10 additions and 2 deletions
|
|
@ -0,0 +1,6 @@
|
|||
class AddUniquenessToSurveyItem < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
remove_index :survey_items, :survey_item_id
|
||||
add_index :survey_items, :survey_item_id, unique: true
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue