Added device jobs model

This commit is contained in:
2021-10-19 18:10:20 +02:00
parent 27fc2aa88c
commit c47fb955cf
7 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class CreateDeviceJobs < ActiveRecord::Migration[6.1]
def change
create_table :device_jobs do |t|
t.Jobs :references
t.Devices :references
t.primary_key :id
t.integer :job_id
t.integer :device_id
t.timestamps
add_index :device_jobs_index, [:job_id, :device_id]
end
end
end