1 # frozen_string_literal: true
 
   3 class RenameBugsToNotes < ActiveRecord::Migration[4.2]
 
   5     rename_enum "map_bug_status_enum", :to => "note_status_enum"
 
   6     rename_enum "map_bug_event_enum", :to => "note_event_enum"
 
   8     rename_table :map_bugs, :notes
 
   9     rename_index :notes, "map_bugs_changed_idx", "notes_updated_at_idx"
 
  10     rename_index :notes, "map_bugs_created_idx", "notes_created_at_idx"
 
  11     rename_index :notes, "map_bugs_tile_idx", "notes_tile_status_idx"
 
  13     rename_table :map_bug_comment, :note_comments
 
  14     rename_column :note_comments, :bug_id, :note_id
 
  15     rename_index :note_comments, "map_bug_comment_id_idx", "note_comments_note_id_idx"
 
  19     rename_index :note_comments, "note_comments_note_id_idx", "map_bug_comment_id_idx"
 
  20     rename_column :note_comments, :note_id, :bug_id
 
  21     rename_table :note_comments, :map_bug_comment
 
  23     rename_index :notes, "notes_tile_status_idx", "map_bugs_tile_idx"
 
  24     rename_index :notes, "notes_created_at_idx", "map_bugs_created_idx"
 
  25     rename_index :notes, "notes_updated_at_idx", "map_bugs_changed_idx"
 
  26     rename_table :notes, :map_bugs
 
  28     rename_enum "note_event_enum", :to => "map_bug_event_enum"
 
  29     rename_enum "note_status_enum", :to => "map_bug_status_enum"