aboutsummaryrefslogtreecommitdiff
path: root/db/migrate/20201005154908_create_agents.rb
blob: 32792eec52cd7fd84f71d2ee86a082398274343a (plain)
1
2
3
4
5
6
7
8
9
10
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