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

19
db/schema.rb generated
View File

@@ -18,19 +18,24 @@ ActiveRecord::Schema[7.1].define(version: 2024_07_30_214152) do
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
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.0
t.string "pdf"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["costumer_id"], name: "index_jobs_on_costumer_id"
t.index ["operator_id"], name: "index_jobs_on_operator_id"
t.index ["status"], name: "index_jobs_on_status"
end
create_table "users", force: :cascade do |t|