Save PK of the model to be partitioned
Use the model PK in the trigger instead of 'id'
MySQL: Use the model PK in the trigger instead of 'id'
Merge pull request #8 from fjcapdevila/allow_other_pk_column_name

Allow other primary key column name