mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 02:04:57 +00:00
Add GCM token field to device
This commit is contained in:
5
db/migrate/20151113095735_add_gcm_token_to_devices.rb
Normal file
5
db/migrate/20151113095735_add_gcm_token_to_devices.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddGcmTokenToDevices < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :devices, :gcm_token, :string
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20151109072450) do
|
||||
ActiveRecord::Schema.define(version: 20151113095735) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -58,6 +58,7 @@ ActiveRecord::Schema.define(version: 20151109072450) do
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "heartbeats_count", default: 0
|
||||
t.datetime "last_heartbeat_recd_time"
|
||||
t.string "gcm_token"
|
||||
end
|
||||
|
||||
create_table "heartbeats", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user