1 class RenameIds < ActiveRecord::Migration[5.0]
3 rename_column :changeset_tags, :id, :changeset_id
4 rename_column :current_node_tags, :id, :node_id
5 rename_column :nodes, :id, :node_id
6 rename_column :node_tags, :id, :node_id
7 rename_column :current_way_tags, :id, :way_id
8 rename_column :current_way_nodes, :id, :way_id
9 rename_column :ways, :id, :way_id
10 rename_column :way_tags, :id, :way_id
11 rename_column :way_nodes, :id, :way_id
12 rename_column :current_relation_tags, :id, :relation_id
13 rename_column :current_relation_members, :id, :relation_id
14 rename_column :relations, :id, :relation_id
15 rename_column :relation_tags, :id, :relation_id
16 rename_column :relation_members, :id, :relation_id