mirror of
http://ghproxy.cn/https://github.com/multunus/onemdm-server
synced 2025-12-06 18:24:58 +00:00
12 lines
333 B
Ruby
12 lines
333 B
Ruby
class CreateInstallations < ActiveRecord::Migration
|
|
def change
|
|
create_table :installations do |t|
|
|
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
|
|
end
|
|
end
|