about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2018-05-25T16·11+0200
committerVincent Ambo <github@tazj.in>2018-05-27T13·00+0200
commit468af132e89a8cb80392b7d6e12f1e53b849c0c1 (patch)
treef4877b500e25627a5f3b938692def8aa33cae925 /src/models.rs
parent33462c01fadc1093e1992f6277270ef809451841 (diff)
feat(db): Add migration & fields to indicate a thread is closed
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs
index 3ad4a5ed9d7d..006596fd8331 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -39,6 +39,7 @@ pub struct Thread {
     pub posted: DateTime<Utc>,
     pub sticky: bool,
     pub user_id: i32,
+    pub closed: bool,
 }
 
 #[derive(Identifiable, Queryable, Serialize, Associations)]