57fcb79d71
- Auto save article slug
6 lines
160 B
Ruby
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
|