mastodon/db
Eugen Rochko fb1ae0152d
Wrong exception class: ActiveRecord::RecordNotUnique, not PG::UniqueViolation ()
* Wrong exception class: ActiveRecord::RecordNotUnique, not PG::UniqueViolation

It's completely not obvious but PG::UniqueViolation is just a string inside the exception message, not the actual class of the exception

* Favourite does not have target_account_id
..
migrate Wrong exception class: ActiveRecord::RecordNotUnique, not PG::UniqueViolation ()
schema.rb Deduplicate accounts and make unique username/domain index case-insensitive ()
seeds.rb Fix db:seed - only run some validations when the field was changed ()