Files
adamantium/db/migrate/20230101122416_add_unique_constraint_to_post_slug.rb
2023-01-27 22:55:09 +11:00

10 lines
143 B
Ruby

# frozen_string_literal: true
ROM::SQL.migration do
change do
alter_table :posts do
add_unique_constraint :slug
end
end
end