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

14 lines
240 B
Ruby

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