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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user