about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/models.rs1
-rw-r--r--src/schema.rs1
2 files changed, 2 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)]
diff --git a/src/schema.rs b/src/schema.rs
index a824c658c00f..f163f4b1e7ea 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -33,6 +33,7 @@ table! {
         posted -> Timestamptz,
         sticky -> Bool,
         user_id -> Int4,
+        closed -> Bool,
     }
 }