SyntaxFix
Write A Post
Hire A Developer
Questions
If ever you need to do the same thing with mongoid:
Model.all.rename(:old_field, :new_field)
UPDATE
There is change in the syntax in monogoid 4.0.0:
monogoid 4.0.0
Model.all.rename(old_field: :new_field)