cartodb-4.42/db/migrate/20150928100216_create_visualization_backups.rb
2024-04-06 05:25:13 +00: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