1
在postgres json
字段中,如何使用ActiveRecord查詢匹配item["editions"]
包括23
的所有數組項目?如何檢查包含嵌套數組中的值
Topic.create!(
tree: [
{
"title" => "Title 1",
"description" => "Description",
"editions" => [23],
}
{
"title" => "Title 2",
"description" => "Description",
"editions" => [12],
}
]
)