2023-01-13 19:50:41 +01:00
|
|
|
class CreateEntities < ActiveRecord::Migration[7.0]
|
|
|
|
def change
|
|
|
|
create_table :entities do |t|
|
|
|
|
t.string :name
|
|
|
|
t.string :ha_id
|
2023-01-13 20:47:31 +01:00
|
|
|
t.string :ha_type
|
|
|
|
t.references :member, null: false, foreign_key: true
|
|
|
|
|
2023-01-13 19:50:41 +01:00
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|