Files
onemdm-server/db/migrate/20151113132152_create_installations.rb
2015-11-16 19:08:05 +05:30

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