How to Introduce Composite Primary Keys in Rails

Sources