Skip to content

Commit

Permalink
AO3-4820-AO3-3810 Add unique index per rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
weeklies committed Apr 16, 2024
1 parent 4a0e6c1 commit fb3c158
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions db/migrate/20240416174046_add_unique_index_to_skins_title.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class AddUniqueIndexToSkinsTitle < ActiveRecord::Migration[6.1]
uses_departure! if Rails.env.staging? || Rails.env.production?

def change
remove_index :skins, :title
add_index :skins, :title, unique: true
end
end

0 comments on commit fb3c158

Please sign in to comment.