Skip to content

Instantly share code, notes, and snippets.

@nashirox
Created March 21, 2019 04:43
Show Gist options
  • Save nashirox/435d03472f9929ac63d35e78a771b9de to your computer and use it in GitHub Desktop.
Save nashirox/435d03472f9929ac63d35e78a771b9de to your computer and use it in GitHub Desktop.
class DropUsers < ActiveRecord::Migration
def change
drop_table :users do |t|
t.string :name, null: false
t.string :email, null: false, unique: true
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