aboutsummaryrefslogtreecommitdiffstats
path: root/src/schema.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-10-01 22:38:55 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-10-01 22:38:55 +0200
commit1767eb2dafbab8b19cc4cf0a9a890539ce2948c1 (patch)
treee8b8942bb9383d2a3986c2d549b1c53863c69ca1 /src/schema.rs
parentb62344371e4ce07aa19da5e7faeef322e907653e (diff)
downloadrocket-blog-1767eb2dafbab8b19cc4cf0a9a890539ce2948c1.tar.gz
rocket-blog-1767eb2dafbab8b19cc4cf0a9a890539ce2948c1.tar.bz2
rocket-blog-1767eb2dafbab8b19cc4cf0a9a890539ce2948c1.zip
Add schema for posts, and display them on index page.
Diffstat (limited to 'src/schema.rs')
-rw-r--r--src/schema.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/schema.rs b/src/schema.rs
new file mode 100644
index 0000000..236bbc9
--- /dev/null
+++ b/src/schema.rs
@@ -0,0 +1 @@
+infer_schema!("dotenv:DATABASE_URL");