diff --git a/migrations/127_tag_name_unique.rb b/migrations/127_tag_name_unique.rb new file mode 100644 index 00000000..d31a9566 --- /dev/null +++ b/migrations/127_tag_name_unique.rb @@ -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 \ No newline at end of file