diff options
Diffstat (limited to 'db/migrate/20201005154908_create_agents.rb')
-rw-r--r-- | db/migrate/20201005154908_create_agents.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20201005154908_create_agents.rb b/db/migrate/20201005154908_create_agents.rb new file mode 100644 index 0000000..32792ee --- /dev/null +++ b/db/migrate/20201005154908_create_agents.rb @@ -0,0 +1,11 @@ +class CreateAgents < ActiveRecord::Migration[6.0] + def change + create_table :agents do |t| + t.string :name + t.uuid :uuid + + t.timestamps + end + add_index :agents, [:uuid], unique: true + end +end |