19 lines
292 B
Ruby
19 lines
292 B
Ruby
|
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
|