Added some preliminary database stuff; added a script to mock adding a post to the DB

This commit is contained in:
2022-12-07 17:19:22 -05:00
parent ae443a5ba3
commit 587cc2fb55
8 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Sequel.migration do
up do
create_table(:posts) do
primary_key :id
String :text, null: false
DateTime :publish_at
Boolean :published, default: false
DateTime :created_at
DateTime :updated_at
end
end
down do
drop_table(:posts)
end
end