Scaffold job model

This commit is contained in:
2024-07-29 00:39:55 +02:00
parent 42e3df63a7
commit 43dfb7398a
19 changed files with 522 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
class CreateJobs < ActiveRecord::Migration[7.1]
def change
create_table :jobs do |t|
t.references :operator_id, null: false, foreign_key: true
t.references :costumer_id, null: false, foreign_key: true
t.string :operator_firstname
t.string :operator_lastname
t.string :costumer_firstname
t.string :costumer_lastname
t.boolean :paid
t.datetime :printed_at
t.boolean :intern
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.timestamps
end
end
end