Created
August 22, 2019 03:18
-
-
Save rwehresmann/5bd3c7d9a91519b9406ae10bedc6688e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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