I wonder if there's a fast way that I can update the column names after I did the migration in rails?
For example, in my schema, entity user has a column "user_name", and I changed that to "name" through a migration below:
class FixColumnName < ActiveRecord::Migration
def change
rename_column :users, :user_name, :name
end
end
Then I ran
rake db:migrate
However, in other files, say test/users_controller_test.rb, the column name is still "user_name", and I have to modify that manually. I wonder if there's a way to change the name for good?