mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-19 04:25:50 +08:00
18 lines
502 B
Ruby
Vendored
18 lines
502 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class CreateInferredConceptPosts < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :inferred_concept_posts, id: false do |t|
|
|
t.bigint :inferred_concept_id
|
|
t.bigint :post_id
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :inferred_concept_posts,
|
|
%i[post_id inferred_concept_id],
|
|
unique: true,
|
|
name: "index_inferred_concept_posts_uniqueness"
|
|
|
|
add_index :inferred_concept_posts, :inferred_concept_id
|
|
end
|
|
end
|