diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20201005154908_create_agents.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrate/20201005154908_create_agents.rb b/db/migrate/20201005154908_create_agents.rb index 32792ee..cc5a00f 100644 --- a/db/migrate/20201005154908_create_agents.rb +++ b/db/migrate/20201005154908_create_agents.rb @@ -6,6 +6,7 @@ class CreateAgents < ActiveRecord::Migration[6.0] t.timestamps end + add_index :agents, [:name], unique: true add_index :agents, [:uuid], unique: true end end |