Thanks a lot for the info. I'll put these to my notes. :-)


On Mar 4, 2014, at 8:23 PM, Lee Duan <notifications@github.com> wrote:

> In db/seeds.rb:
> 
> > @@ -133,6 +134,8 @@
> >  QueueItem.create(user: user_2, video: video_4, list_order: 1)
> >  QueueItem.create(user: user_2, video: video_5, list_order: 2)
> >  
> > -user_1.following_relationships.create(leader: user_2)
> > -user_2.following_relationships.create(leader: user_1)
> > -user_2.following_relationships.create(leader: user_3)
> Sorry, should have been more clear. There were two issues. The first was the description column of Video and Review models being strings, so the character limit is set at 255 in PostgreSQL, so I had to do an up/down migration to change the column type from string to text (which has no character size limit).
> 
> The second was that running user_1.following_relationships.create(leader: user_2) would throw a parent model not created error in PostgreSQL. Not 100% sure why since user_1 definitely exists already. Must have something to do with the following_relationships method linking to the Relationship table.
> 
> —
> Reply to this email directly or view it on GitHub.
>