aboutsummaryrefslogtreecommitdiffstats
path: root/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/models')
-rw-r--r--src/models/room.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/room.rs b/src/models/room.rs
index 33fb931..1ec6e56 100644
--- a/src/models/room.rs
+++ b/src/models/room.rs
@@ -19,7 +19,7 @@
use crate::schema::rooms;
use serde::{Deserialize, Serialize};
-#[derive(Clone, Default, Deserialize, Identifiable, PartialEq, Serialize, Queryable)]
+#[derive(Clone, Default, Deserialize, Identifiable, Insertable, PartialEq, Serialize, Queryable)]
pub struct Room {
pub id: i32,
pub name: String,