MCQs > IT & Programming > Ruby On Rails > How is it possible to create combined unique index for two fields?

Ruby On Rails MCQs

How is it possible to create combined unique index for two fields?

Answer

Correct Answer: add_index :project_users, [:user_id, :project_id], unique: true

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it