How To Delete A Table In Rails

[Solved] How To Delete A Table In Rails | Ruby - Code Explorer | yomemimo.com
Question : how to delete a table in rails

Answered by : bright-beaver

rails g migration DropProducts
class DropProducts < ActiveRecord::Migration def change drop_table :products end
end

Source : https://patrickperey.com/2014/03/13/rails-remove-a-table/ | Last Update : Fri, 21 Feb 20

Answers related to how to delete a table in rails

Code Explorer Popular Question For Ruby