-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from tamu-edu-students/survey_responses_model_fix
removed unique constraint from survey_responses model
- Loading branch information
Showing
2 changed files
with
35 additions
and
31 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
rails_root/db/migrate/20240217001343_remove_unique_constraint_from_survey_responses.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class RemoveUniqueConstraintFromSurveyResponses < ActiveRecord::Migration[7.1] | ||
def change | ||
remove_index :survey_responses, name: 'index_survey_responses_on_user_id' | ||
add_index :survey_responses, :user_id | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.