How To Rename A Table In Ruby

[Solved] How To Rename A Table In Ruby | Ruby - Code Explorer | yomemimo.com
Question : how to rename a table in ruby

Answered by : bright-beaver

 class RenameOldTableToNewTable < ActiveRecord::Migration def change rename_table :old_table_name, :new_table_name end end

Source : https://stackoverflow.com/questions/4631630/renaming-table-in-rails | Last Update : Fri, 21 Feb 20

Answers related to how to rename a table in ruby

Code Explorer Popular Question For Ruby