Worked on layout, added model funktions, changed database

Changes to the migration file make it necessary to reimport the
database: db:drop, db:create, db:migrate, db:seed
This commit is contained in:
2024-08-01 00:27:55 +02:00
parent 40ea1910c7
commit e3d5d97c6c
9 changed files with 137 additions and 34 deletions

View File

@@ -7,15 +7,19 @@ class CreateJobs < ActiveRecord::Migration[7.1]
t.string :operator_lastname
t.string :costumer_firstname
t.string :costumer_lastname
t.boolean :paid
t.boolean :printed, default: false
t.boolean :paid, default: false
t.datetime :printed_at
t.boolean :intern
t.datetime :paid_at
t.boolean :intern, default: false
t.string :cost_center
t.integer :number_of_plans_a0
t.integer :number_of_plans_a1
t.integer :number_of_plans_a2
t.integer :number_of_plans_a3
t.float :costum_qm_plan
t.integer :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
t.integer :number_of_plans_a3, default: 0
t.float :costum_qm_plan, default: 0
t.string :pdf
t.timestamps
end