This project is archived and is in readonly mode.
Schema dumper ignores custom id column even when :id => false
-
dust
+1
I spent a nice chunk of yesterday tracking this issue down on my system, and this patch (along with re-dumping the schema, obviously) fixes the issue for me.
-
CancelProfileIsBroken
- Tag changed from primary_key, schema to bugmash, primary_key, schema
-
Tristan Dunn
New patch to simply not default the primary key to ID in the schema dumper. If you don't define it then the connection should find it.
-
Tristan Dunn
Seems to be some confusion on which branch I should be working on so I made one on master and 2-3-stable.
-
Dan Croak
+1 verified 2-3-stable patch applies clean and tests run green. Implementation looks good to me.
-
Jeremy Kemper
- Assigned user set to Jeremy Kemper
- Tag changed from bugmash, primary_key, schema to primary_key, schema
- State changed from new to committed
- Milestone changed from 2.x to 2.3.4
2-3-stable: 9aa9bad024253a7ab2adee63df8185dc876393f9
master: 791cccaedab9c3e975b00135db76047ad4435611
-
Repository
(from [9aa9bad024253a7ab2adee63df8185dc876393f9]) Don't define a default primary key in the schema dumper.
[#1908 Schema dumper ignores custom id column even when :id => false state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/9aa9bad024253a7ab2adee63df8185... -
Repository
(from [791cccaedab9c3e975b00135db76047ad4435611]) Don't define a default primary key in the schema dumper.
[#1908 Schema dumper ignores custom id column even when :id => false state:committed]
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net
http://github.com/rails/rails/commit/791cccaedab9c3e975b00135db7604...
