14 lines
396 B
Ruby
14 lines
396 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateTopicsInferredConcepts < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :topics_inferred_concepts, primary_key: %i[topic_id inferred_concept_id] do |t|
|
|
t.integer :topic_id, null: false
|
|
t.integer :inferred_concept_id, null: false
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :topics_inferred_concepts, :inferred_concept_id
|
|
end
|
|
end
|