cartodb-4.42/db/migrate/20150119142002_add_prev_and_next_to_visualizations.rb

13 lines
342 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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