Added table jobs and table devices

This commit is contained in:
2021-10-19 17:50:25 +02:00
parent fc293608fa
commit 27fc2aa88c
13 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class CreateJobs < ActiveRecord::Migration[6.1]
def change
create_table :jobs do |t|
t.primary_key :job_id
t.json :params
t.string :type
t.timestamps
end
end
end

View File

@@ -0,0 +1,10 @@
class CreateDevices < ActiveRecord::Migration[6.1]
def change
create_table :devices do |t|
t.primary_key :id
t.string :device_id
t.timestamps
end
end
end