Hmmm.. OK, I have put this in place:
class Comment < ApplicationRecord belongs_to :user belongs_to :published_entity, foreign_key: "entity_id" but rails is still trying to use status_id.. (I have a class PublishedEntity which status inherits from) class Status < PublishedEntity self.table_name = 'statuses' self.primary_key = 'entity_id' maybe this is causing problems? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/12482867a051cf10f9ea068c8b2774fd%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.

