SchemaPlus/schema_plus — pull request #178 by micronix (2014-10-15 18:44:35+00:00)
Title: :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' }