SQLITE wont return a value stored in a field

I am trying to figure out why i cant get the value of the field qty_change only thing i can think of is maybe that is a protected attribute in SQLite

irb(main):007:0> InventoryChange.first
  InventoryChange Load (0.2ms)  SELECT "inventory_changes".* FROM "inventory_changes" ORDER BY "inventory_changes"."id" ASC LIMIT ?  [["LIMIT", 1]]
=> #<InventoryChange id: 1, item_no: "93103", upc: "047708117036", qty: 1000, qty_change: -10, transaction_type: "Shipped", created_at: "2022-05-06 00:31:30", updated_at: "2022-05-06 00:31:30">

irb(main):008:0> InventoryChange.first.qty_change
  InventoryChange Load (0.2ms)  SELECT "inventory_changes".* FROM "inventory_changes" ORDER BY "inventory_changes"."id" ASC LIMIT ?  [["LIMIT", 1]]
=> nil

irb(main):009:0> InventoryChange.first.qty
  InventoryChange Load (0.2ms)  SELECT "inventory_changes".* FROM "inventory_changes" ORDER BY "inventory_changes"."id" ASC LIMIT ?  [["LIMIT", 1]]
=> 1000
irb(main):010:0>
How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum