mirror of
https://gitlab.com/MisterBiggs/diesel_tutorial.git
synced 2025-08-02 11:41:26 +00:00
tut checkpoint
This commit is contained in:
2
migrations/2025-05-10-003345_create_posts/down.sql
Normal file
2
migrations/2025-05-10-003345_create_posts/down.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE posts
|
7
migrations/2025-05-10-003345_create_posts/up.sql
Normal file
7
migrations/2025-05-10-003345_create_posts/up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE posts (
|
||||
id SERIAL PRIMARY KEY,
|
||||
title VARCHAR NOT NULL,
|
||||
body TEXT NOT NULL,
|
||||
published BOOLEAN NOT NULL DEFAULT FALSE
|
||||
)
|
Reference in New Issue
Block a user