Fixed typo

This commit is contained in:
2024-10-02 13:51:15 +02:00
parent 23749c80b8
commit 337ff9b9d9
24 changed files with 79 additions and 79 deletions

View File

@@ -1,12 +1,12 @@
class CreateJobs < ActiveRecord::Migration[7.1]
def change
create_table :jobs do |t|
t.references :costumer, null: true
t.references :customer, null: true
t.references :creator, null: true
t.references :cashier, null: true
t.references :operator, null: true
t.string :costumer_firstname
t.string :costumer_lastname
t.string :customer_firstname
t.string :customer_lastname
t.string :operator_firstname
t.string :operator_lastname
t.string :cashier_firstname

View File

@@ -10,14 +10,14 @@ class CreateUsers < ActiveRecord::Migration[7.2]
t.boolean :verified, null: false, default: false
t.integer :costumer_jobs_count, default: 0
t.integer :customer_jobs_count, default: 0
t.integer :operator_jobs_count, default: 0
t.integer :created_jobs_count, default: 0
t.integer :cashed_jobs_count, default: 0
t.timestamps
end
add_foreign_key :jobs, :users, column: :costumer_id
add_foreign_key :jobs, :users, column: :customer_id
add_foreign_key :jobs, :users, column: :operator_id
add_foreign_key :jobs, :users, column: :creator_id
add_foreign_key :jobs, :users, column: :cashier_id