myapp/db/migrate/20210115105735_devise_create_users.rb
Complex method DeviseCreateUsers#change (27.8) Open
Open
def change
create_table :users do |t|
t.boolean :admin, default: false
## Database authenticatable
t.string :email, null: false, default: ""
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool