After upgrading from 0.7.5 to 0.9.2 I got this error when calling the friends-method on a user, e.g.
user.friends
ActiveRecord::StatementInvalid: Mysql2::Error: Unknown column 'friendships.friendable_id' in 'where clause': SELECT users.* FROM users WHERE ((users.id IN (SELECT friendships.friend_id FROM friendships WHERE ((friendships.friendable_id = 13 AND friendships.pending = 0 AND friendships.blocker_id IS NULL))) OR users.id IN (SELECT friendships.friendable_id FROM friendships WHERE ((friendships.friend_id = 13 AND friendships.pending = 0 AND friendships.blocker_id IS NULL)))))
After upgrading from 0.7.5 to 0.9.2 I got this error when calling the friends-method on a user, e.g.
user.friends
ActiveRecord::StatementInvalid: Mysql2::Error: Unknown column 'friendships.friendable_id' in 'where clause': SELECT
users
.* FROMusers
WHERE ((users
.id
IN (SELECTfriendships
.friend_id
FROMfriendships
WHERE ((friendships
.friendable_id
= 13 ANDfriendships
.pending
= 0 ANDfriendships
.blocker_id
IS NULL))) ORusers
.id
IN (SELECTfriendships
.friendable_id
FROMfriendships
WHERE ((friendships
.friend_id
= 13 ANDfriendships
.pending
= 0 ANDfriendships
.blocker_id
IS NULL)))))