mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2026-04-27 06:49:06 +00:00
Added Models App, Installation Batch Installation
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
class App < ActiveRecord::Base
|
||||
|
||||
validates :name, :package_name, presence: true
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
class BatchInstallation < ActiveRecord::Base
|
||||
belongs_to :app
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class Installation < ActiveRecord::Base
|
||||
enum status: [:pushed, :downloaded, :cancelled, :installed]
|
||||
|
||||
|
||||
|
||||
belongs_to :device
|
||||
belongs_to :batch_installation
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user