Skip to content
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

NoMethodError: undefined method `oid' for #<ActiveRecord::ConnectionAdapters::NullColumn> #14

Open
azzaahmed opened this issue Aug 19, 2018 · 2 comments

Comments

@azzaahmed
Copy link

NoMethodError: undefined method oid' for #<ActiveRecord::ConnectionAdapters::NullColumn:0x00000000081ce578> /home/.rvm/gems/ruby-2.4.4/gems/activerecord-5.1.6/lib/active_record/connection_adapters/postgresql/quoting.rb:76:in lookup_cast_type_from_column'
home/.rvm/gems/ruby-2.4.4/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/quoting.rb:59:in type_cast_from_column' /home/.rvm/gems/ruby-2.4.4/gems/active_record_bulk_insert-1.3.1/lib/active_record_bulk_insert.rb:47:in _bulk_insert_quote'
/home/.rvm/gems/ruby-2.4.4/gems/active_record_bulk_insert-1.3.1/lib/active_record_bulk_insert.rb:28:in block (2 levels) in bulk_insert' /home/.rvm/gems/ruby-2.4.4/gems/active_record_bulk_insert-1.3.1/lib/active_record_bulk_insert.rb:27:in each'
/home/.rvm/gems/ruby-2.4.4/gems/active_record_bulk_insert-1.3.1/lib/active_record_bulk_insert.rb:27:in map' /home/.rvm/gems/ruby-2.4.4/gems/active_record_bulk_insert-1.3.1/lib/active_record_bulk_insert.rb:27:in block in bulk_insert'
/home/.rvm/gems/ruby-2.4.4/gems/active_record_bulk_insert-1.3.1/lib/active_record_bulk_insert.rb:26:in map' /home/.rvm/gems/ruby-2.4.4/gems/active_record_bulk_insert-1.3.1/lib/active_record_bulk_insert.rb:26:in bulk_insert'

@bjhaid
Copy link
Owner

bjhaid commented Aug 20, 2018

Hey sorry you are encountering this bug, I have not been actively working on this project or related things, however if you identify the root cause and it's related to the project please do submit a patch, I will be happy to review and accept

@danilvoe
Copy link

danilvoe commented Aug 30, 2018

We had such a problem when there was a password field in the list of added values (at the DB level it does not exist, but the model has such an attribute) in the User model (connected to the devise) after removing the field the insertion was successful.

rails 5.1.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants