Rails 5.1.0 introduces the bigint primary keys and foreign keys.
All new tables will have bigint pk and creating a reference migration to an old table will not work since the old pk is a normal int.
Using change_column _, :id,:bigint
just errors with a foreign key is pointing towards it, not to mention all the manual labour of finding all the tables and which has which key that needs to be modified.
How do I migrate my production database all my tables to use bigint pk and fk's?
Ofcourse since it's production rails db:drop rails db:setup
is not an option.