cartodb/db/migrate/20160412144305_add_unique_constraint_to_permission_id.rb

14 lines
240 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
Sequel.migration do
up do
alter_table :visualizations do
add_unique_constraint :permission_id
end
end
down do
alter_table :visualizations do
drop_constraint :visualizations_permission_id_key
end
end
end