-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rails 7 version throws "PG::UndefinedObject" #257
Comments
Could you share your CockroachDB version and your rails database configuration (or URL) you used to connect? |
Cockroach V22.1.4 default: &default
adapter: cockroachdb
encoding: utf8
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
development:
<<: *default
database: some_app_development
host: localhost
port: 26257
user: root
password: ""
sslmode: disable |
BTW tested this in a Rails 6 app with the 6.1.10 adapter and it works as expected. ❯ bundle exec rake db:create
Created database 'some_app_development'
Created database 'some_app_test'
❯ ruby -v
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [arm64-darwin21]
❯ bundle show rails
/Users/some_user/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/rails-6.1.6.1
❯ bundle show activerecord-cockroachdb-adapter
/Users/some_user/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/activerecord-cockroachdb-adapter-6.1.10 |
I haven't been able to reproduce this. If possible, could you upload your code to a repo or a gist so i can try running it myself? The |
I'm having the same issue with Rails 7.
Using database.yml
|
|
Strangely I ran it again today and it worked just fine. 🤷🏻 |
The text was updated successfully, but these errors were encountered: