Chatwoot/db/migrate/20220930025317_add_unique_index_to_slug.rb
Tejaswini Chile 57fcb79d71
fix: Article slug auto saves (#5524)
- Auto save article slug
2022-09-30 07:25:23 -07:00

6 lines
160 B
Ruby

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