1 class CleanupBugTables < ActiveRecord::Migration[5.0]
3 rename_column :map_bugs, :date_created, :created_at
4 rename_column :map_bugs, :last_changed, :updated_at
5 rename_column :map_bugs, :date_closed, :closed_at
7 rename_column :map_bug_comment, :date_created, :created_at
8 rename_column :map_bug_comment, :commenter_name, :author_name
9 rename_column :map_bug_comment, :commenter_ip, :author_ip
10 rename_column :map_bug_comment, :commenter_id, :author_id
11 rename_column :map_bug_comment, :comment, :body
15 rename_column :map_bug_comment, :body, :comment
16 rename_column :map_bug_comment, :author_id, :commenter_id
17 rename_column :map_bug_comment, :author_ip, :commenter_ip
18 rename_column :map_bug_comment, :author_name, :commenter_name
19 rename_column :map_bug_comment, :created_at, :date_created
21 rename_column :map_bugs, :closed_at, :date_closed
22 rename_column :map_bugs, :updated_at, :last_changed
23 rename_column :map_bugs, :created_at, :date_created