Fixed a couple small things; added database stuff

This commit is contained in:
2024-07-03 09:39:28 -04:00
parent fb7f99d67b
commit 5a264ddf5e
5 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,16 @@
Sequel.migration do
up do
create_table(:messages) do
primary_key :id
String :body, null: false
DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
DateTime :updated_at, default: Sequel::CURRENT_TIMESTAMP
end
end
down do
drop_table(:messages)
end
end