Add GCM push for pushing OneMDM app to devices

This commit is contained in:
leenasn
2015-11-16 19:07:29 +05:30
parent 51881fa3fb
commit c9ec15aa9b
22 changed files with 131 additions and 76 deletions

View File

@@ -1,6 +1,6 @@
class CreateApplications < ActiveRecord::Migration
def change
create_table :applications do |t|
create_table :apps do |t|
t.string :name
t.string :package_name

View File

@@ -1,5 +0,0 @@
class RenameApplicationToApp < ActiveRecord::Migration
def change
rename_table :applications, :apps
end
end

View File

@@ -1,8 +1,7 @@
class CreateBatchInstallations < ActiveRecord::Migration
def change
create_table :batch_installations do |t|
t.integer :app_id
t.belongs_to :app, foreign_key: true, index: true
t.timestamps null: false
end
end

View File

@@ -1,9 +1,9 @@
class CreateInstallations < ActiveRecord::Migration
def change
create_table :installations do |t|
t.integer :device_id
t.integer :batch_installation_id
t.integer :status
t.belongs_to :device, foreign_key: true, index: true
t.belongs_to :batch_installation, foreign_key: true, index: true
t.integer :status, default: 0, null: false
t.timestamps null: false
end