How is it possible to create combined unique index for two fields?
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
Your Skill Level: Poor
Retake Quizzes to improve it
More Ruby On Rails MCQ Questions
Which of these options for 'dependent' do not exist in Rails?
The has_one association supports following options?
The belongs_to association supports following options? A) :autosavename, :class_id B) :primary_key, :validate, :optional C) :conuter_cache, :inverse_of, :foreign_key D) :dependent, :polymorphic, :touch
Which of the following loops is not supported by Ruby?
Which declaration can be used to override the default layout conventions in your controllers?
When you've got a form, and when the user submits invalid data, you redirect back to the edit form. If you want to show a general error message (not tied to validation errors) to the user, you'd do which of the following?
Which of these is NOT a valid way of associating models?
To randomize the order of entries in an Array, use the _______ method.
What is the output of the following? puts 'a\nb'
Which controller methods is NOT properly paired with its HTTP counterpart?