downgrade rails version to add composite_primary_keys