Commander Johnson
2012-Jun-09 11:14 UTC
Re: ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: ''Transactions::DummyDdnlTransaction''. This error is raised because the column ''type'' is reserved for storing the class in case of inheritance. P
FIXED: Transaction is a reserved word, and it cannot be used even though I put it into its own module. So my guess is Transactions::Transaction still somehow got resolved to the Rails internal Transaction class. Renamed the Transaction (and its subclasses) to Transact and it works fine now. Thanks! -- cmdjohnson On Sat, Jun 9, 2012 at 3:08 AM, Commander Johnson <commanderjohnson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, > > I stumble upon this error when loading a subclass of the Transaction > class. For full details, see the pastie: > > http://pastie.org/4053678 > > Error message: ActiveRecord::SubclassNotFound: The single-table > inheritance mechanism failed to locate the subclass: > ''Transactions::DummyDdnlTransaction''. This error is raised because the > column ''type'' is reserved for storing the class in case of > inheritance. Please rename this column if you didn''t intend it to be > used for storing the inheritance class or overwrite > Transactions::DummyDdnlTransaction.inheritance_column to use another > column for that information. > > Have Googled around, tried solutions like self.subclasses and > require_dependency but they didn''t work for me. > > I''m on Rails 2.3.14. > > cmdjohnson-- http://rubyonrailsdeveloper.nl -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Apparently Analagous Threads
- ActiveRecord::SubclassNotFound: The single-table inheritance mechanism failed to locate the subclass: 'Transactions::DummyDdnlTransaction'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Pleas
- Undefined method f_title
- Multiple tenants on Rails
- Handling instantiate_without_callbacks
- 11 deleted messages in this conversation.