mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 18:24:58 +00:00
Create device model and setup devise, activeadmin and rspec!
- with attributes: model, imei_number, unique_id and access_token - access_token is automatically generated on create
This commit is contained in:
12
db/migrate/20151016122334_create_devices.rb
Normal file
12
db/migrate/20151016122334_create_devices.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user