|
@@ -2,14 +2,14 @@
|
|
|
class AppVersion < ActiveRecord::Base
|
|
class AppVersion < ActiveRecord::Base
|
|
|
has_paper_trail
|
|
has_paper_trail
|
|
|
self.table_name = "app_versions"
|
|
self.table_name = "app_versions"
|
|
|
- validates :app_type,:version,:version_code,presence: true
|
|
|
|
|
|
|
+ validates :app_type,:app_version,:version_code,presence: true
|
|
|
VERSION_ENUM= [["安卓","Android"], ["IOS","Ios"]]
|
|
VERSION_ENUM= [["安卓","Android"], ["IOS","Ios"]]
|
|
|
|
|
|
|
|
rails_admin do
|
|
rails_admin do
|
|
|
navigation_label '版本发布管理'
|
|
navigation_label '版本发布管理'
|
|
|
weight -500
|
|
weight -500
|
|
|
list do
|
|
list do
|
|
|
- filters [:app_type,:version,:version_code]
|
|
|
|
|
|
|
+ filters [:app_type,:app_version,:version_code]
|
|
|
field :id
|
|
field :id
|
|
|
field :app_type, :enum do
|
|
field :app_type, :enum do
|
|
|
filterable true
|
|
filterable true
|
|
@@ -17,7 +17,7 @@ class AppVersion < ActiveRecord::Base
|
|
|
VERSION_ENUM
|
|
VERSION_ENUM
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
- field :version
|
|
|
|
|
|
|
+ field :app_version
|
|
|
field :version_code
|
|
field :version_code
|
|
|
field :is_force
|
|
field :is_force
|
|
|
field :apk_url
|
|
field :apk_url
|
|
@@ -35,7 +35,7 @@ class AppVersion < ActiveRecord::Base
|
|
|
VERSION_ENUM
|
|
VERSION_ENUM
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
- field :version
|
|
|
|
|
|
|
+ field :app_version
|
|
|
field :version_code
|
|
field :version_code
|
|
|
field :is_force
|
|
field :is_force
|
|
|
field :apk_url
|
|
field :apk_url
|
|
@@ -51,7 +51,7 @@ class AppVersion < ActiveRecord::Base
|
|
|
VERSION_ENUM
|
|
VERSION_ENUM
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
- field :version
|
|
|
|
|
|
|
+ field :app_version
|
|
|
field :version_code
|
|
field :version_code
|
|
|
field :is_force
|
|
field :is_force
|
|
|
field :apk_url
|
|
field :apk_url
|