Permalink
Browse files

Adding an Auto Increment field to a table with existing data in MySQL

  • Loading branch information...
1 parent 5900e0b commit a863a06507ec96550b8c89ea2ecd2f1ba3517d7e @baldwindavid committed Sep 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 05-22-2008/README.md
View
@@ -1,5 +1,5 @@
Adding an Auto Increment field to a table with existing data in MySQL
-=====================================================================
+======================================================================
I recently (like a few minutes ago) attempted to integrate a number of existing legacy MySQL tables into a Rails project. Thus, for the first time I have had to dig into migrations a bit further. Migrations make iterative database development fairly pleasant, but I did run into a problem with a few pesky tables that didn't already have a primary key. These were tables that didn't necessarily need primary keys in their past lives, but I have found that there is just no point in not "going with the flow" of Rails conventions. So they needed primary keys.

0 comments on commit a863a06

Please sign in to comment.