19 lines
465 B
Ruby
19 lines
465 B
Ruby
|
Sequel.migration do
|
||
|
up do
|
||
|
create_table :logs do
|
||
|
|
||
|
Uuid :id, primary_key: true, null: false, unique: false, default: Sequel.lit('uuid_generate_v4()')
|
||
|
Text :type, null: false
|
||
|
Uuid :user_id
|
||
|
DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
|
||
|
DateTime :updated_at, default: Sequel::CURRENT_TIMESTAMP
|
||
|
Text :entries
|
||
|
|
||
|
end
|
||
|
end
|
||
|
|
||
|
down do
|
||
|
drop_table :logs
|
||
|
end
|
||
|
end
|