skip to Main Content

Postgresql – Rails 7.1, "Is Invalid" on has_many through: Associated Polymorphic Class

When trying to save a new Product::Group, with many Product::Features, I get the error "Features is invalid" This below gives the error. class Product::ObjectFeature < ApplicationRecord self.table_name = "object_features" belongs_to :feature, class_name: "Product::Feature", foreign_key: :feature_id, inverse_of: :object_features belongs_to :featurable, polymorphic:…

VIEW QUESTION
Back To Top
Search