This project is archived and is in readonly mode.

#2702 ✓committed
Fabien Jakimowicz

Single Table Inherited model generator

Reported by Fabien Jakimowicz | May 24th, 2009 @ 01:47 AM | in 3.0.2

If I have to generate a model (and its associated unit test) which inherited from another model (sti), i have to use model generator with two options and to manually modify generated model.

This generator create a simple class which inherit from its parent:

script/generate sti_model car vehicule
will generate the following model:
class Car < Vehicule


Patch contains both documentation and test. It applies cleanly on master and 2-3-stable branches.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>


Referenced by