# NoMethodError: undefined method \`min\_tags\_from\_required\_group'

**URL:** <https://meta.discourse.org/t/nomethoderror-undefined-method-min-tags-from-required-group/238525>\
**Category:** Self-hosting\
**Created:** [September 9, 2022, 2:10am UTC](https://meta.discourse.org/t/nomethoderror-undefined-method-min-tags-from-required-group/238525 "2022-09-09T02:10:16Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![hyphalos](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@hyphalos](https://meta.discourse.org/u/hyphalos)\
**Post date:** [September 20, 2022, 12:58am UTC](https://meta.discourse.org/t/nomethoderror-undefined-method-min-tags-from-required-group/238525/13 "2022-09-20T00:58:13Z")

</div>

Hey @pfaffman ,

Thanks for your response! Unfortunately I keep running into the same issue:

```plaintext
d/bundle exec rake db:drop db:create db:migrate
PG::InsufficientPrivilege: ERROR: must be owner of database discourse_development
Couldn't drop database 'discourse_development'
rake aborted!
ActiveRecord::StatementInvalid: PG::InsufficientPrivilege: ERROR: must be owner of database discourse_development
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'

Caused by:
PG::InsufficientPrivilege: ERROR: must be owner of database discourse_development
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
Tasks: TOP => db:drop:_unsafe
(See full trace by running task with --trace)

```

I’ve attempted this on an empty instance (restarted from the start, no existing DBs or information) using the [beginner’s guide](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009) and it renders the same result.

This is the error I still get in `d/rails s`

```plaintext
NoMethodError (undefined method `min_tags_from_required_group' for #<Category:0x00007f3cca7ce5a8>)
(eval):36:in `_fast_attributes'
app/models/site.rb:70:in `block in all_categories_cache'
lib/cache.rb:94:in `fetch'
app/models/site.rb:52:in `all_categories_cache'
app/models/site.rb:78:in `categories'
app/serializers/site_serializer.rb:203:in `categories'
(eval):32:in `_fast_attributes'
app/models/site.rb:167:in `json_for'
app/controllers/application_controller.rb:595:in `preload_anonymous_data'
app/controllers/finish_installation_controller.rb:69:in `ensure_no_admins'
app/controllers/application_controller.rb:387:in `block in with_resolved_locale'
app/controllers/application_controller.rb:387:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:71:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/missing_avatars.rb:23:in `call'
lib/middleware/turbo_dev.rb:34:in `call'

```

---

_[View the full topic](https://meta.discourse.org/t/nomethoderror-undefined-method-min-tags-from-required-group/238525)._
