我不明白为什么我的查询出现可以正常运行,但是当我查看数据库时,找不到任何这样的记录-我的循环总共插入了37条记录-他们实际上都不在数据库中!?
我知道我可以连接数据库了,因为我在Phoenix应用程序的其他页面上查询了数据。
有人有我可以调查的想法吗?
混合phx.server输出:
begin []
[debug] QUERY OK db=0.2ms
INSERT INTO `activities` (`days_coding`,`days_done`,`days_merged`,`days_pending_release`,`days_pending_review`,`days_ready_for_qa`,`days_requires_discussion`,`days_selected_for_development`,`days_testing`,`new`,`sprint_id`,`stage`,`stage_date`,`ticket_id`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?) [10, 0, 0, 0, 4, 8, 26, 45, 0, false, 10, "Ready for QA", {2018, 8, 13}, 184]
[debug] QUERY OK db=0.4ms
commit []
%Ptrack.Youtrack.Activity{
__meta__: #Ecto.Schema.Metadata<:loaded, "activities">,
days_coding: 10,
days_done: 0,
days_merged: 0,
days_pending_release: 0,
days_pending_review: 4,
days_ready_for_qa: 8,
days_requires_discussion: 26,
days_selected_for_development: 45,
days_testing: 0,
id: 7500,
new: false,
sprint_id: 10,
stage: "Ready for QA",
stage_date: ~D[2018-08-13],
ticket: %Ptrack.Youtrack.Ticket{
__meta__: #Ecto.Schema.Metadata<:loaded, "tickets">,
aha_ref: nil,
assignee: "wilmer",
id: 184,
summary: "VMS (Prod) - Able to delete a vendor with entities ",
ticket: "SN-204",
ticket_type: "Bug"
},
ticket_id: 184
}