Check out example codes for "how to delete a table in rails". It will help you in understanding the concepts better.

Code Example 1

rails g migration DropProducts

class DropProducts < ActiveRecord::Migration
  def change
    drop_table :products
  end
end

Learn ReactJs, React Native from akashmittal.com