Notes posted by bradwerth
RSS feed
0 thanks

1 thank
Re: Doesn't work? Don't think it ever has.
Instead of
create_table :user_follows, :force => true do |t| t.references :user t.references :followed_user t.timestamps t.index :user t.index :followed_user end
Try
create_table :user_follows, :force => true do |t| t.references :user t.references :followed_user t.timestamps end index :user_follows , :user index :user_follows , :followed_user
It looks like the provided examples are incorrect…

2 thanks
the :order parameter is not sanitized
The :order parameter is not sanitized, so doing something like Person.find( :first , :order => params[:order] ) could get you in trouble.