Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

how to delete a table in rails

rails g migration DropProducts

class DropProducts < ActiveRecord::Migration
  def change
    drop_table :products
  end
end
Source by patrickperey.com #
 
PREVIOUS NEXT
Tagged: #delete #table #rails
ADD COMMENT
Topic
Name
7+6 =