entity scaffold
This commit is contained in:
11
db/migrate/20230113170732_create_entities.rb
Normal file
11
db/migrate/20230113170732_create_entities.rb
Normal file
@ -0,0 +1,11 @@
|
||||
class CreateEntities < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :entities do |t|
|
||||
t.string :name
|
||||
t.string :ha_id
|
||||
t.string :type
|
||||
t.references :member
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user