mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 10:14:59 +00:00
- with attributes: model, imei_number, unique_id and access_token - access_token is automatically generated on create
13 lines
247 B
Ruby
13 lines
247 B
Ruby
class CreateDevices < ActiveRecord::Migration
|
|
def change
|
|
create_table :devices do |t|
|
|
t.string :model
|
|
t.string :unique_id
|
|
t.string :imei_number
|
|
t.string :access_token
|
|
|
|
t.timestamps null: false
|
|
end
|
|
end
|
|
end
|