MaCH repo
This commit is contained in:
6
12_rails_15_min_blog_external/create_posts.sql
Normal file
6
12_rails_15_min_blog_external/create_posts.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE posts (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
title TEXT NOT NULL,
|
||||
body TEXT NOT NULL,
|
||||
created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%d %H:%M', 'now'))
|
||||
);
|
||||
Reference in New Issue
Block a user