class CreateLinks < ActiveRecord::Migration[5.0]
  def change
    create_table :links, id: false do |t|
      t.integer :sentence_1_id, null: false
      t.integer :sentence_2_id, null: false
    end
    add_index :links, %i[sentence_1_id sentence_2_id], unique: true
  end
end
