Skip to content

Commit

Permalink
Merge pull request #5776 from CartoDB/5710-new-table-rake
Browse files Browse the repository at this point in the history
New Visualization Backups table
  • Loading branch information
Kartones committed Sep 28, 2015
2 parents 06bc280 + 0ec55c2 commit be87fa4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions db/migrate/20150928100216_create_visualization_backups.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Sequel.migration do
up do
Rails::Sequel::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

0 comments on commit be87fa4

Please sign in to comment.