Rename all ID columns that aren't unique
authorTom Hughes <tom@compton.nu>
Sun, 25 Sep 2011 13:42:33 +0000 (14:42 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:52 +0000 (09:42 +0000)
commitfc25c3d412829774abf0454e4dcc92e41f47454c
tree3ea06054a7ba2298027d6d419e9f06f3cf77f581
parentb63ce5d460cf794602aa7996cdd857dc39faa3d9
Rename all ID columns that aren't unique

Having a table with a column called ID that is only part of the
primary key really doesn't work as rails likes to treat ID as a
special name so it becomes impossible to assign to it or read it.
55 files changed:
app/controllers/amf_controller.rb
app/controllers/changeset_controller.rb
app/controllers/old_node_controller.rb
app/controllers/old_relation_controller.rb
app/controllers/old_way_controller.rb
app/controllers/relation_controller.rb
app/models/changeset.rb
app/models/changeset_tag.rb
app/models/node.rb
app/models/node_tag.rb
app/models/old_node.rb
app/models/old_node_tag.rb
app/models/old_relation.rb
app/models/old_relation_member.rb
app/models/old_relation_tag.rb
app/models/old_way.rb
app/models/old_way_node.rb
app/models/old_way_tag.rb
app/models/relation.rb
app/models/relation_member.rb
app/models/relation_tag.rb
app/models/way.rb
app/models/way_node.rb
app/models/way_tag.rb
db/migrate/20110925112722_rename_ids.rb [new file with mode: 0644]
test/fixtures/changeset_tags.yml
test/fixtures/current_node_tags.yml
test/fixtures/current_relation_members.yml
test/fixtures/current_relation_tags.yml
test/fixtures/current_way_nodes.yml
test/fixtures/current_way_tags.yml
test/fixtures/node_tags.yml
test/fixtures/nodes.yml
test/fixtures/relation_members.yml
test/fixtures/relation_tags.yml
test/fixtures/relations.yml
test/fixtures/way_nodes.yml
test/fixtures/way_tags.yml
test/fixtures/ways.yml
test/functional/amf_controller_test.rb
test/functional/browse_controller_test.rb
test/functional/changeset_controller_test.rb
test/functional/node_controller_test.rb
test/functional/old_relation_controller_test.rb
test/functional/old_way_controller_test.rb
test/unit/changeset_tag_test.rb
test/unit/node_tag_test.rb
test/unit/node_test.rb
test/unit/old_node_tag_test.rb
test/unit/old_node_test.rb
test/unit/old_relation_tag_test.rb
test/unit/old_way_tag_test.rb
test/unit/relation_tag_test.rb
test/unit/way_node_test.rb
test/unit/way_tag_test.rb