1 class RenameMetadataToLinks < ActiveRecord::Migration
3 rename_table :metadata, :links
4 rename_column :links, :tail, :tail_uuid
5 rename_column :links, :head, :head_uuid
6 rename_column :links, :info, :properties
7 rename_column :links, :metadata_class, :link_class
8 rename_index :links, :index_metadata_on_head_kind, :index_links_on_head_kind
9 rename_index :links, :index_metadata_on_head, :index_links_on_head_uuid
10 rename_index :links, :index_metadata_on_tail_kind, :index_links_on_tail_kind
11 rename_index :links, :index_metadata_on_tail, :index_links_on_tail_uuid
12 rename_index :links, :index_metadata_on_uuid, :index_links_on_uuid
16 rename_index :links, :index_links_on_uuid, :index_metadata_on_uuid
17 rename_index :links, :index_links_on_head_kind, :index_metadata_on_head_kind
18 rename_index :links, :index_links_on_head_uuid, :index_metadata_on_head
19 rename_index :links, :index_links_on_tail_kind, :index_metadata_on_tail_kind
20 rename_index :links, :index_links_on_tail_uuid, :index_metadata_on_tail
21 rename_column :links, :link_class, :metadata_class
22 rename_column :links, :properties, :info
23 rename_column :links, :head_uuid, :head
24 rename_column :links, :tail_uuid, :tail
25 rename_table :links, :metadata