I made this migration which did change the column name, but I found I had to rewrite a bunch of view, model and other code to reflect this name change.
class ChangePersonStatusToPersonGroup < ActiveRecord::Migration
rename_column :people, :status, :category
I created person using scaffolding. what is the better way to change that column name without also having to manualy search for status and Status and change them to category and Category in
and a few other files.
I'm using rails 4 and ruby 2. Let me know if there is any other info about my setup, or other clarification you need. Any help is appreciated.