changed enum to string in user and job model
This commit is contained in:
@@ -14,7 +14,7 @@ class CreateJobs < ActiveRecord::Migration[7.1]
|
||||
t.datetime :paid_at
|
||||
t.boolean :intern, default: false
|
||||
t.string :cost_center
|
||||
t.integer :status, default: 0, index: true
|
||||
t.string :status, default: 0, index: true
|
||||
t.integer :number_of_plans_a0, default: 0
|
||||
t.integer :number_of_plans_a1, default: 0
|
||||
t.integer :number_of_plans_a2, default: 0
|
||||
|
||||
@@ -6,7 +6,7 @@ class CreateUsers < ActiveRecord::Migration[7.2]
|
||||
t.string :firstname
|
||||
t.string :lastname
|
||||
|
||||
t.integer :role, default: 0, index: true
|
||||
t.string :role, default: 0, index: true
|
||||
|
||||
t.boolean :verified, null: false, default: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user