Chatwoot/db/migrate/20220930025317_add_unique_index_to_slug.rb

7 lines
160 B
Ruby
Raw Normal View History

class AddUniqueIndexToSlug < ActiveRecord::Migration[6.1]
def change
remove_index :articles, :slug
add_index :articles, :slug, unique: true
end
end