I'm on rails 5.2, and trying to rename a column on a devise User.
the rename_column
bit worked for me, but the singular :table_name
threw a "User table not found" error. Plural worked for me.
rails g RenameAgentinUser
Then change migration file to this:
rename_column :users, :agent?, :agent
Where :agent? is the old column name.