12345678910111213 |
- 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.timestamps
- end
- end
- end
|