Answers for "drop table in migration"

5

how to delete a table in rails

rails g migration DropProducts

class DropProducts < ActiveRecord::Migration
  def change
    drop_table :products
  end
end
Posted by: Guest on February-14-2020
0

laravel drop table migration

Schema::drop('users');

Schema::dropIfExists('users');
Posted by: Guest on April-27-2020

Code answers related to "drop table in migration"

Browse Popular Code Answers by Language