cartodb-4.42/db/migrate/20160808114842_add_state_id_to_visualizations.rb

14 lines
236 B
Ruby
Raw Normal View History

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