Howoto get id of new record after model.save
- by tonymarschall
I have a model with the following db structure:
mysql> describe units;
+------------+----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+----------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name …