remove db rails table code example
Example 1: how to delete a table in rails
rails g migration DropProducts
class DropProducts < ActiveRecord::Migration
def change
drop_table :products
end
end
Example 2: drop rails all db
rake db:drop:all
rails db:drop:all