diff options
Diffstat (limited to 'migrations/2017-10-01-193613_create_posts/up.sql')
-rw-r--r-- | migrations/2017-10-01-193613_create_posts/up.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migrations/2017-10-01-193613_create_posts/up.sql b/migrations/2017-10-01-193613_create_posts/up.sql new file mode 100644 index 0000000..c0c36e5 --- /dev/null +++ b/migrations/2017-10-01-193613_create_posts/up.sql @@ -0,0 +1,7 @@ +-- Create posts table +CREATE TABLE posts ( + id SERIAL PRIMARY KEY, + title VARCHAR NOT NULL, + body TEXT NOT NULL, + published BOOLEAN NOT NULL DEFAULT 'f' +) |