skill-assessment-app/db/migrate/20160915164450_create_reviewer_to_quizzes.rb

13 lines
308 B
Ruby
Raw Permalink Normal View History

# 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