1 class RenameBugsToNotes < ActiveRecord::Migration[4.2]
3 rename_enum "map_bug_status_enum", :to => "note_status_enum"
4 rename_enum "map_bug_event_enum", :to => "note_event_enum"
6 rename_table :map_bugs, :notes
7 rename_index :notes, "map_bugs_changed_idx", "notes_updated_at_idx"
8 rename_index :notes, "map_bugs_created_idx", "notes_created_at_idx"
9 rename_index :notes, "map_bugs_tile_idx", "notes_tile_status_idx"
11 rename_table :map_bug_comment, :note_comments
12 rename_column :note_comments, :bug_id, :note_id
13 rename_index :note_comments, "map_bug_comment_id_idx", "note_comments_note_id_idx"
17 rename_index :note_comments, "note_comments_note_id_idx", "map_bug_comment_id_idx"
18 rename_column :note_comments, :note_id, :bug_id
19 rename_table :note_comments, :map_bug_comment
21 rename_index :notes, "notes_tile_status_idx", "map_bugs_tile_idx"
22 rename_index :notes, "notes_created_at_idx", "map_bugs_created_idx"
23 rename_index :notes, "notes_updated_at_idx", "map_bugs_changed_idx"
24 rename_table :notes, :map_bugs
26 rename_enum "note_event_enum", :to => "map_bug_event_enum"
27 rename_enum "note_status_enum", :to => "map_bug_status_enum"