summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-21 22:12:49 -0700
committermo khan <mo@mokhan.ca>2015-02-21 22:12:49 -0700
commit7cd78597d794efcf79090377bbc1909a1d6d3ad9 (patch)
treef4f55eb33be3912030c505198e67b1cba9ba2473 /db/migrate
parentfeaf5cfae0f948ceebae4d1ff2c80d84cd76cae0 (diff)
parent05b427bd4d9f9c4ea60f9485f06d68de0b689d28 (diff)
merge with master
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150204042612_add_agent_id_to_events.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/migrate/20150204042612_add_agent_id_to_events.rb b/db/migrate/20150204042612_add_agent_id_to_events.rb
index 40b4125..957473e 100644
--- a/db/migrate/20150204042612_add_agent_id_to_events.rb
+++ b/db/migrate/20150204042612_add_agent_id_to_events.rb
@@ -1,5 +1,6 @@
class AddAgentIdToEvents < ActiveRecord::Migration
def change
- add_reference :events, :agent, index: true
+ add_column :events, :agent_id, :uuid, null: false
+ add_index :events, :agent_id
end
end