cartodb/db/migrate/20140801140346_create_logs.rb

19 lines
465 B
Ruby
Raw Permalink Normal View History

2020-06-15 10:58:47 +08:00
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