このコミットが含まれているのは:
2025-07-30 00:20:03 +09:00
コミット 0f902f0d27
5個のファイルの変更71行の追加1行の削除
+9
ファイルの表示
@@ -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
+9
ファイルの表示
@@ -0,0 +1,9 @@
class CreateTagSimilarities < ActiveRecord::Migration[7.0]
def change
create_table :tag_similarities do |t|
t.references :tag, null: false, foreign_key: { to_table: :tags }
t.references :target_tag, null: false, foreign_key: { to_table: :tags }
t.float :cos, null: false
end
end
end