I am getting error:
PG::UndefinedTable: ERROR: relation "profiles_rsl_codes" does not exist LINE 5:
when I try to destroy a profile.
I have a table called rsl_codes_profiles
and in my profile model I have
has_many :rsl_codes_profiles, class_name: "RslCodesProfile", dependent: :destroy
and in my RslCodesProfile
class I have:
class RslCodesProfile < ActiveRecord::Base
belongs_to :rsl_code
belongs_to :profile
validates :rsl_code_id, :presence => true
validates :profile_id, :presence => true
validates :rel_type, :presence => true
end
there may have been some migrating and undoing of migration and changing name of that table and then remigrating in case that might have had an influence.
A global search of my application does not find any reference to profiles_rsl_codes
or ProfilesRslCodes
or the singular of those.
The error backtrace only points to where I do @profile.destroy
and the rest of the trace is all framework stuff.
Any ideas?