add db unique constraint for tags

This commit is contained in:
Kyle Drake 2024-08-14 13:10:55 -05:00
parent 4eeec12b67
commit 314227136e

View file

@ -0,0 +1,13 @@
Sequel.migration do
up {
alter_table(:tags) do
add_unique_constraint :name
end
}
down {
alter_table(:tags) do
drop_constraint :tags_name_key
end
}
end