ActiveRecord 理解。MySQL + ActiveRecord でシーケンス番号を生成。 – こせきの技術日記 koseki.hatenablog.com 2016.02.08 ActiveRecordLAST_INSERT_IDMySQLsequence