Rails Re-associate ActiveStorage attachments after changing a table name Sometimes you have to change a table name. When you do, don't forget to update ActiveStorage relationships otherwise your files will be orphaned.