0

Sometimes I name unfavorable column name in its model.

And I want to rename column with rename_column method, like below.

class XXX
  rename_column :users, :user_name, :name
end

But I'm not sure how I can give the class name for this migration.

Is there any usual way to name it?

gaaamii
  • 5
  • 3

0 Answers0