It appears a table in sql server is placing nil in the select statement. I have no idea how to fix this, and if I switch to any other table, I can easily acquir
nil
This is because your table doesn't have a primary_key. You can run a migration like this: (this is rails 5 though)
class AddFieldToPosaCode < ActiveRecord::Migration[5.0] execute 'ALTER TABLE my_table ADD PRIMARY KEY(my_column)' end