blob: 761d5bc796132cfc56cad20609a62ab51612f37f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class CreateResources < ActiveRecord::Migration[6.0]
def change
create_table :resources do |t|
t.uuid :uuid
t.jsonb :feature
t.references :agent, null: false, foreign_key: true
t.timestamps
end
add_index :resources, [:uuid], unique: true
add_index :resources, [:agent_id]
end
end
|