Added table jobs and devices
This commit is contained in:
10
db/migrate/20211020095206_create_jobs.rb
Normal file
10
db/migrate/20211020095206_create_jobs.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateJobs < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :jobs do |t|
|
||||
t.json :params
|
||||
t.string :type
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
9
db/migrate/20211020101118_create_devices.rb
Normal file
9
db/migrate/20211020101118_create_devices.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class CreateDevices < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :devices do |t|
|
||||
t.string :device_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user