Added cost and cost_qm in job model

Changes to the migration file makes it necessary to reimport the
database: db:drop db:create db:migrate db:seed
This commit is contained in:
2024-08-08 22:28:12 +02:00
parent 616bd0cbe7
commit 33db74df71
5 changed files with 28 additions and 9 deletions

View File

@@ -20,9 +20,11 @@ class CreateJobs < ActiveRecord::Migration[7.1]
t.integer :number_of_plans_a2, default: 0
t.integer :number_of_plans_a3, default: 0
t.float :costum_qm_plan, default: 0
t.float :cost, default: 0
t.float :cost_qm, default: 0
t.boolean :privacy_policy_accepted, default: false
t.timestamps
end
end
end
end

2
db/schema.rb generated
View File

@@ -59,6 +59,8 @@ ActiveRecord::Schema[7.1].define(version: 2024_08_01_153403) do
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.float "cost", default: 0.0
t.float "cost_qm", default: 0.0
t.boolean "privacy_policy_accepted", default: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false