This model is unnecessary and you can enforce uniqueness using an index: `add_index :attended_concerts, [:concert_id, user_id], unique: true`

Also, validating uniqueness is quite expensive.  add `, on: :create` to limit it to creation only.