Added user model and fixed reference in migration

This commit is contained in:
2024-07-31 06:48:43 +02:00
parent ceafe1fe69
commit d322ba1a83
11 changed files with 98 additions and 75 deletions

View File

@@ -1,4 +1,4 @@
class Job < ApplicationRecord
belongs_to :operator_id
belongs_to :costumer_id
belongs_to :operator, class_name: 'User', optional: true
belongs_to :costumer, class_name: 'User', optional: true
end