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

14 lines
236 B
Ruby

Sequel.migration do
up do
alter_table :visualizations do
add_foreign_key :state_id, :states, type: 'uuid', null: true
end
end
down do
alter_table :visualizations do
drop_column :state_id
end
end
end