7 lines
160 B
Ruby
7 lines
160 B
Ruby
|
class AddUniqueIndexToSlug < ActiveRecord::Migration[6.1]
|
||
|
def change
|
||
|
remove_index :articles, :slug
|
||
|
add_index :articles, :slug, unique: true
|
||
|
end
|
||
|
end
|