cartodb-4.42/db/migrate/20160412144305_add_unique_constraint_to_permission_id.rb
2024-04-06 05:25:13 +00: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