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,8 +1,8 @@
class CreateJobs < ActiveRecord::Migration[7.1]
def change
create_table :jobs do |t|
t.references :operator_id, null: false, foreign_key: true
t.references :costumer_id, null: false, foreign_key: true
t.references :operator, null: true
t.references :costumer, null: true
t.string :operator_firstname
t.string :operator_lastname
t.string :costumer_firstname