This commit is contained in:
2025-07-30 00:20:03 +09:00
parent 9bb0e736f0
commit 0f902f0d27
5 changed files with 71 additions and 1 deletions
@@ -0,0 +1,9 @@
class CreatePostSimilarities < ActiveRecord::Migration[7.0]
def change
create_table :post_similarities do |t|
t.references :post, null: false, foreign_key: { to_table: :posts }
t.references :target_post, null: false, foreign_key: { to_table: :posts }
t.float :cos, null: false
end
end
end