@@ -4,22 +4,22 @@ class DeviseCreateAdmins < ActiveRecord::Migration[7.1]
44 def change
55 create_table :admins do |t |
66 ## Database authenticatable
7- t . string :email , null : false , default : ""
7+ t . string :email , null : false , default : ""
88 t . string :encrypted_password , null : false , default : ""
99
1010 ## Recoverable
11- t . string :reset_password_token
11+ t . string :reset_password_token
1212 t . datetime :reset_password_sent_at
1313
1414 ## Rememberable
1515 t . datetime :remember_created_at
1616
1717 ## Trackable
18- # t.integer :sign_in_count, default: 0, null: false
19- # t.datetime :current_sign_in_at
20- # t.datetime :last_sign_in_at
21- # t.string :current_sign_in_ip
22- # t.string :last_sign_in_ip
18+ t . integer :sign_in_count , default : 0 , null : false
19+ t . datetime :current_sign_in_at
20+ t . datetime :last_sign_in_at
21+ t . string :current_sign_in_ip
22+ t . string :last_sign_in_ip
2323
2424 ## Confirmable
2525 # t.string :confirmation_token
@@ -32,11 +32,10 @@ def change
3232 # t.string :unlock_token # Only if unlock strategy is :email or :both
3333 # t.datetime :locked_at
3434
35-
3635 t . timestamps null : false
3736 end
3837
39- add_index :admins , :email , unique : true
38+ add_index :admins , :email , unique : true
4039 add_index :admins , :reset_password_token , unique : true
4140 # add_index :admins, :confirmation_token, unique: true
4241 # add_index :admins, :unlock_token, unique: true
0 commit comments