Scaffold job model
This commit is contained in:
23
db/migrate/20240727101347_create_jobs.rb
Normal file
23
db/migrate/20240727101347_create_jobs.rb
Normal 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
|
||||
Reference in New Issue
Block a user