mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 02:04:57 +00:00
Added Models App, Installation Batch Installation
This commit is contained in:
4
app/models/app.rb
Normal file
4
app/models/app.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class App < ActiveRecord::Base
|
||||
|
||||
validates :name, :package_name, presence: true
|
||||
end
|
||||
3
app/models/batch_installation.rb
Normal file
3
app/models/batch_installation.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class BatchInstallation < ActiveRecord::Base
|
||||
belongs_to :app
|
||||
end
|
||||
9
app/models/installation.rb
Normal file
9
app/models/installation.rb
Normal file
@@ -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