basic entity get/show

This commit is contained in:
2023-01-13 21:47:31 +02:00
parent 26ea76c8e9
commit 38f51a5de6
13 changed files with 74 additions and 38 deletions

View File

@ -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