From fda3c3d02bb2a4a99e825c4d25d6f35951c1f317 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Wed, 20 Jun 2018 02:41:31 +0200 Subject: [PATCH] try to solve issue #217. diesel.rs documentation was misinterpreted wrt. proposal.fcp_start = None. (#218) Former-commit-id: 35ea208f2cd2884980563b31001254ef719bedcf --- src/domain/rfcbot.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/domain/rfcbot.rs b/src/domain/rfcbot.rs index 4a1f5c21..260d22c9 100644 --- a/src/domain/rfcbot.rs +++ b/src/domain/rfcbot.rs @@ -17,6 +17,7 @@ pub struct NewFcpProposal<'a> { #[derive(AsChangeset, Clone, Debug, Deserialize, Eq, Ord, PartialEq, PartialOrd, Queryable, Serialize)] #[table_name="fcp_proposal"] +#[changeset_options(treat_none_as_null="true")] pub struct FcpProposal { pub id: i32, pub fk_issue: i32,