Fixed default value for user.role
This commit is contained in:
@@ -6,7 +6,7 @@ class CreateUsers < ActiveRecord::Migration[7.2]
|
|||||||
t.string :firstname
|
t.string :firstname
|
||||||
t.string :lastname
|
t.string :lastname
|
||||||
|
|
||||||
t.string :role, default: 0, index: true
|
t.string :role, default: "user", index: true
|
||||||
|
|
||||||
t.boolean :verified, null: false, default: false
|
t.boolean :verified, null: false, default: false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user