class CreateJoinTableQuestionTest < ActiveRecord::Migration[5.1]
  def change
    create_join_table :question, :tests do |t|
      t.integer :order, null: false
      t.index [:question_id, :test_id]
      t.index :test_id
    end
  end
end
