1234567891011121314 |
- class CreateUsers < ActiveRecord::Migration[6.1]
- def change
- create_table :users do |t|
- t.string :email, null: false
- t.index :email, unique: true
- t.string :username, null: false
- t.index :username, unique: true
- t.string :password_digest
- t.boolean :is_admin, default: false
-
- t.timestamps
- end
- end
- end
|