cartodb-4.42/db/migrate/20140801140346_create_logs.rb
2024-04-06 05:25:13 +00:00

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