Skip to content

Instantly share code, notes, and snippets.

@deepakmahakale
Created July 5, 2018 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deepakmahakale/1eb2e0ce677bd22e6f2db19a8c91b774 to your computer and use it in GitHub Desktop.
Save deepakmahakale/1eb2e0ce677bd22e6f2db19a8c91b774 to your computer and use it in GitHub Desktop.
Reversible migration for dropping a table
class DropUsers < ActiveRecord::Migration
  def change
    drop_table :users do |t|
      t.string :email, null: false
      t.timestamps null: false
    end
  end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment