[Rails] PostgreSQL Schema and Rails
Michael Koziarski
koziarski at gmail.com
Tue Mar 1 02:57:04 GMT 2005
On Mon, 28 Feb 2005 17:47:00 -0800, Robby Russell <robby at planetargon.com> wrote:
> On Tue, 2005-03-01 at 14:10 +1300, Michael Koziarski wrote:
> >On Mon, 28 Feb 2005 17:00:46 -0800, Robby Russell <robby at planetargon.com> wrote:
> >> Hey all,
> >>
> >> I am curious about how Rails interacts with SCHEMAs in PostgreSQL. From
> >> the generate command, is it possible to setup a scaffold for a table not
> >> in the public. schema in PostgreSQL?
> >>
> >> As a test, I tried,
> >> ./script/generate scaffold Manage.Form Manage.Form
> >
> >How about:
> >
> >class Form < ActiveRecord::Base
> > table_name "Manage.Form"
> >end
> >?
>
> Yes, I knew of that, just wondering if there was a way to define the
> table_name with the generate script..and if not, will there be a way?
> (feature request?)
It doesn't appear like there's a way to specify the table name in the
model generator at present. You can file an enhancement request at
http://dev.rubyonrails.org/. You could provide a patch too ..... ;)
> -Robby
>
> --
> /***************************************
> * Robby Russell | Owner.Developer.Geek
> * PLANET ARGON | www.planetargon.com
> * Portland, OR | robby at planetargon.com
> * 503.351.4730 | blog.planetargon.com
> * PHP/PostgreSQL Hosting & Development
> * --- Now hosting Ruby on Rails Apps ---
> ****************************************/
>
>
--
Cheers
Koz
More information about the Rails
mailing list