# ActiveRecord error when running db:schema:load - "NoMethodError: undefined method 'uuid'"

**URL:** <https://discuss.circleci.com/t/activerecord-error-when-running-dbload-nomethoderror-undefined-method-uuid/45241>\
**Category:** Databases\
**Tags:** ruby, rspec, docker, circle-yml, postgres\
**Created:** [August 30, 2022, 6:18pm UTC](https://discuss.circleci.com/t/activerecord-error-when-running-dbload-nomethoderror-undefined-method-uuid/45241 "2022-08-30T18:18:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambreenhasan](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/ambreenhasan/32/30951_2.png) [@ambreenhasan](https://discuss.circleci.com/u/ambreenhasan)\
**Post date:** [August 30, 2022, 6:18pm UTC](https://discuss.circleci.com/t/activerecord-error-when-running-dbload-nomethoderror-undefined-method-uuid/45241/1 "2022-08-30T18:18:20Z")

</div>

I’m running into an issue when running `bundle exec rake db:schema:load` when setting up the test database before tests can be ran:

“NoMethodError: undefined method `uuid’ for ActiveRecord”

This happens when a table that uses a uuid column is created via `bundle exec rake db:schema:load`.

I initially thought this was due to a missing pg extension such as pgcrypto, but that is a part of postgres-contrib which has been added to the postgres convenience image which we use: [Still can't use this if PG extensions are in use · Issue #11 · CircleCI-Public/cimg-postgres · GitHub](https://github.com/CircleCI-Public/cimg-postgres/issues/11)

FYI I did have a successful build where the tests ran and this randomly started happening ( and not due to code changes) and haven’t been able to figure it out. Any help would be appreciated.

CircleCI Config file: [CircleCI · GitHub](https://gist.github.com/ambreenhasan/e3098fbea206306e9a001741b544d53d)

Environment specs:  
Ruby 2.6.6  
Rails 4.2.11  
Postgres 12.8
