73b674b613
confirm_password_validation around action, unnecessary helpers removed, rubocop-rails suggestions applied Add username index and unique slug index migrations
9 lines
188 B
Ruby
9 lines
188 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UniqueSlugIndex < ActiveRecord::Migration[5.2]
|
|
def change
|
|
remove_index :links, column: :slug
|
|
add_index :links, :slug, unique: true
|
|
end
|
|
end
|