You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a simple User.first to load a row from Snowflake but the id always contains nil:
User.first# <User id:nil, username: "bob>
the underlying query is returning correct data though:
User.connection.exec_query('select * from user limit 1')# {:id => "5", :username => "bob" ...}
Doing a step-by-step object construction yields this error:
h=User.connection.exec_query('select * from user limit 1').to_a[0]User.new(h)# ActiveModel::MissingAttributeError: can't write unknown attribute `ID`# from /Users/bob/.rvm/gems/ruby-2.4.2/gems/activerecord-5.1.7/lib/active_record/attribute.rb:205:in `with_value_from_database'-
Is this something specific to the id column that needs an initializer setting?
The text was updated successfully, but these errors were encountered:
I'm using a simple
User.first
to load a row from Snowflake but theid
always containsnil
:the underlying query is returning correct data though:
Doing a step-by-step object construction yields this error:
Is this something specific to the
id
column that needs an initializer setting?The text was updated successfully, but these errors were encountered: