[Rails] PostgreSQL Schema and Rails

Robby Russell robby at planetargon.com
Tue Mar 1 01:47:00 GMT 2005


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?)

-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 ---
****************************************/



More information about the Rails mailing list