Skip to content

Instantly share code, notes, and snippets.

@rwehresmann
Created August 22, 2019 03:18
Show Gist options
  • Select an option

  • Save rwehresmann/5bd3c7d9a91519b9406ae10bedc6688e to your computer and use it in GitHub Desktop.

Select an option

Save rwehresmann/5bd3c7d9a91519b9406ae10bedc6688e to your computer and use it in GitHub Desktop.
class CreateUsers < ActiveRecord::Migration[5.2]
def change
create_table :users do |t|
t.string :email, null: false, index: true, unique: true
t.boolean :admin, index: true, default: false
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment