You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/db
Eugen Rochko fb1ae0152d
Wrong exception class: ActiveRecord::RecordNotUnique, not PG::UniqueViolation (#7688)
* 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
7 years ago
..
migrate Wrong exception class: ActiveRecord::RecordNotUnique, not PG::UniqueViolation (#7688) 7 years ago
schema.rb Deduplicate accounts and make unique username/domain index case-insensitive (#7658) 7 years ago
seeds.rb Fix db:seed - only run some validations when the field was changed (#3592) 8 years ago