From e96c58580b2ac1874718f3d31a1d4abcdcc6dbb6 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 18 Jan 2018 20:09:37 +0100 Subject: Be explicit about the schema instead of infering it. We don't want to depend on having a correctly set up database just to be able to build the program. --- src/schema.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/schema.rs b/src/schema.rs index 236bbc9..3124ea5 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -1 +1,8 @@ -infer_schema!("dotenv:DATABASE_URL"); +table! { + posts (id) { + id -> Int4, + title -> Varchar, + body -> Text, + published -> Bool, + } +} -- cgit v1.2.3