:name on foreign_key definition was being ignored

Postgres has a length limit on foreign_key names so I needed to specify the name of my key to make it shorter. Doing the following would not work because the :name parameter was being ignored.

t.integer :group_id, foreign_key: { references: :inventory_transaction_groups, name: 'fk_work_order_transaction_groups' }