cartodb/db/migrate/20150928100216_create_visualization_backups.rb
2020-06-15 10:58:47 +08:00

18 lines
487 B
Ruby

Sequel.migration do
up do
SequelRails::connection.run 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'
# INFO: On purpose without indexes, constraints, etc.
create_table :visualization_backups do
String :username, null: false
Uuid :visualization, null: false
String :export_vizjson, null: false
DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
end
end
down do
drop_table :visualization_backups
end
end