basic entity get/show
This commit is contained in:
@ -3,8 +3,9 @@ class CreateEntities < ActiveRecord::Migration[7.0]
|
||||
create_table :entities do |t|
|
||||
t.string :name
|
||||
t.string :ha_id
|
||||
t.string :type
|
||||
t.references :member
|
||||
t.string :ha_type
|
||||
t.references :member, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user