how to delete table in rails code example
Example: how to delete a table in rails
rails g migration DropProducts
class DropProducts < ActiveRecord::Migration
def change
drop_table :products
end
end
rails g migration DropProducts
class DropProducts < ActiveRecord::Migration
def change
drop_table :products
end
end