13 lines
263 B
Ruby
13 lines
263 B
Ruby
class CreateEntities < ActiveRecord::Migration[7.0]
|
|
def change
|
|
create_table :entities do |t|
|
|
t.string :name
|
|
t.string :ha_id
|
|
t.string :ha_type
|
|
t.references :member, null: false, foreign_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|