activerecord-userstamp icon indicating copy to clipboard operation
activerecord-userstamp copied to clipboard

column creator does not exist

Open allenwq opened this issue 7 years ago • 0 comments

After #12, the creator association is delayed loaded. However, it breaks in the cases when columns is not called before the query is generated.

This can be reproduced in console:

> Course::Announcement.where(creator: current_user)

ActiveRecord::StatementInvalid: PG::UndefinedColumn: ERROR:  column course_announcements.creator does not exist

 SELECT "course_announcements".* FROM "course_announcements" WHERE "course_announcements"."creator" = 15082

allenwq avatar Sep 25 '17 06:09 allenwq