cartodb-4.29/db/migrate/20150119142002_add_prev_and_next_to_visualizations.rb
2020-06-15 10:58:47 +08:00

13 lines
342 B
Ruby

Sequel.migration do
up do
SequelRails::connection.run 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'
add_column :visualizations, :prev_id, :uuid, :null => true
add_column :visualizations, :next_id, :uuid, :null => true
end
down do
drop_column :visualizations, :prev_id
drop_column :visualizations, :next_id
end
end