skill-assessment-app/db/migrate/20160915164450_create_reviewer_to_quizzes.rb
2016-09-15 13:39:50 -05:00

13 lines
308 B
Ruby

# frozen_string_literal: true
class CreateReviewerToQuizzes < ActiveRecord::Migration[5.0]
def change
create_table :reviewer_to_quizzes do |t|
t.integer :user_id, null: false
t.integer :quiz_id, null: false
t.timestamps
end
add_index :reviewer_to_quizzes, :quiz_id
end
end