2024-07-03 09:39:28 -04:00
|
|
|
Sequel.migration do
|
|
|
|
|
|
|
|
up do
|
|
|
|
create_table(:messages) do
|
|
|
|
primary_key :id
|
2024-07-03 11:20:06 -04:00
|
|
|
String :slug, null: false, unique: true
|
2024-07-03 09:39:28 -04:00
|
|
|
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
|