summaryrefslogtreecommitdiffstats
path: root/rust/src/database_models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:00:59 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:03:40 -0700
commit0a637859a2e0f0b2015cf567af3bfeab7bbd58da (patch)
tree993173f7b6b1597ae88eac472066c6bd8696a033 /rust/src/database_models.rs
parentca5dad8c6b9983c8e417310deac03173f815fa86 (diff)
downloadfatcat-0a637859a2e0f0b2015cf567af3bfeab7bbd58da.tar.gz
fatcat-0a637859a2e0f0b2015cf567af3bfeab7bbd58da.zip
file_release
Diffstat (limited to 'rust/src/database_models.rs')
-rw-r--r--rust/src/database_models.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs
index 44b57f85..1b4841a0 100644
--- a/rust/src/database_models.rs
+++ b/rust/src/database_models.rs
@@ -187,10 +187,9 @@ pub struct ReleaseRefNewRow {
pub stub: Option<String>,
}
-#[derive(Debug, Queryable, Identifiable, Associations, AsChangeset)]
+#[derive(Debug, Queryable, Insertable, Associations, AsChangeset)]
#[table_name = "file_release"]
pub struct FileReleaseRow {
- pub id: i64,
pub file_rev: i64,
pub target_release_ident_id: Uuid,
}