erd
erd copied to clipboard
Fix that renaming model fails
Description
Renaming model fails when pushing save changes
button.
The order of the assignments are inappropriate.
Before
After
Issue
Migration succeeds, but the renamed model isn't displayed on the ER diagram. The table name is changed but the class name and the file name are not. How much names do I need to change?
- File name
- ex.
models/item.rb
- ex.
- Class name(definition)
- ex.
class Item < ApplicationRecord end
- ex.
- Class name(other places)
- ex.
Item.new
- ex.
- Variable name
- ex.
@item
- ex.
I think that changing names above automatically is difficult. What do @amatsuda think?