Forum: Ruby on Rails Single Table Inheritance

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Oliver A. (Guest)
on 2006-02-09 17:23
(Received via mailing list)
What am I doing wrong?

I have a simple MySQL table:

drop table if exists agencies;
create table agencies (
  id                    int           not null auto_increment,
  type                  varchar(20)   not null,
  name                  varchar(255)  character set utf8 not null,
  primary key (id)

An equally simple Model:

class Agency < ActiveRecord::Base

class FotoAgency < Agency

Why can't create an instance of FotoAgency in script/console? It seems
as the class hasn't been loaded so far.

Best regards,
This topic is locked and can not be replied to.