From 965368dfef6c205c726c4bd1b6f04854293175e4 Mon Sep 17 00:00:00 2001
From: Mateus Rambo Strey <mars11@inf.ufpr.br>
Date: Sun, 31 Jan 2016 14:54:55 -0200
Subject: [PATCH] add user reference in collection table

---
 db/migrate/20160125123423_create_collections.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/db/migrate/20160125123423_create_collections.rb b/db/migrate/20160125123423_create_collections.rb
index d28eaae53..d716fc733 100644
--- a/db/migrate/20160125123423_create_collections.rb
+++ b/db/migrate/20160125123423_create_collections.rb
@@ -4,6 +4,8 @@ class CreateCollections < ActiveRecord::Migration
       t.string :name
       t.text :description
       t.string :privacy
+      
+      t.references :user, index: true
 
       t.timestamps null: false
     end
-- 
GitLab