X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/24b138db094e4b5e8d062c5248ee867967dc0fd7..68abf2075b9efc652e19adeac2bbee9add99e455:/db/migrate/20110521142405_rename_bugs_to_notes.rb diff --git a/db/migrate/20110521142405_rename_bugs_to_notes.rb b/db/migrate/20110521142405_rename_bugs_to_notes.rb index 54b443b32..2e90b5ce8 100644 --- a/db/migrate/20110521142405_rename_bugs_to_notes.rb +++ b/db/migrate/20110521142405_rename_bugs_to_notes.rb @@ -1,9 +1,7 @@ -require "migrate" - class RenameBugsToNotes < ActiveRecord::Migration[4.2] def self.up - rename_enumeration "map_bug_status_enum", "note_status_enum" - rename_enumeration "map_bug_event_enum", "note_event_enum" + rename_enum "map_bug_status_enum", :to => "note_status_enum" + rename_enum "map_bug_event_enum", :to => "note_event_enum" rename_table :map_bugs, :notes rename_index :notes, "map_bugs_changed_idx", "notes_updated_at_idx" @@ -25,7 +23,7 @@ class RenameBugsToNotes < ActiveRecord::Migration[4.2] rename_index :notes, "notes_updated_at_idx", "map_bugs_changed_idx" rename_table :notes, :map_bugs - rename_enumeration "note_event_enum", "map_bug_event_enum" - rename_enumeration "note_status_enum", "map_bug_status_enum" + rename_enum "note_event_enum", :to => "map_bug_event_enum" + rename_enum "note_status_enum", :to => "map_bug_status_enum" end end