Added job attributes, fixed seeds.rb

Added some attributes like status_changed_at. Refactored migration
files.
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-02 13:47:44 +02:00
parent 9a3777be44
commit c5e55eb410
16 changed files with 54 additions and 32 deletions

View File

@@ -10,6 +10,7 @@ class CreateJobs < ActiveRecord::Migration[7.1]
t.boolean :printed, default: false
t.boolean :paid, default: false
t.datetime :printed_at
t.datetime :status_changed_at
t.datetime :paid_at
t.boolean :intern, default: false
t.string :cost_center
@@ -19,7 +20,7 @@ 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.string :pdf
t.boolean :privacy_policy_accepted, default: false
t.timestamps
end

View File

@@ -1,5 +0,0 @@
class AddPrivacyPolicyAcceptedToJob < ActiveRecord::Migration[7.1]
def change
add_column :jobs, :privacy_policy_accepted, :boolean, default: false
end
end