Added table jobs and table devices
This commit is contained in:
11
db/migrate/20211019152106_create_jobs.rb
Normal file
11
db/migrate/20211019152106_create_jobs.rb
Normal 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
|
||||
10
db/migrate/20211019152158_create_devices.rb
Normal file
10
db/migrate/20211019152158_create_devices.rb
Normal 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
|
||||
Reference in New Issue
Block a user