# Legacy db and hyphen on column name issue

**URL:** <https://www.ruby-forum.com/t/legacy-db-and-hyphen-on-column-name-issue/134475>\
**Category:** Rails\
**Created:** [April 11, 2008, 7:16am UTC](https://www.ruby-forum.com/t/legacy-db-and-hyphen-on-column-name-issue/134475 "2008-04-11T07:16:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 11, 2008, 7:16am UTC](https://www.ruby-forum.com/t/legacy-db-and-hyphen-on-column-name-issue/134475/1 "2008-04-11T07:16:27Z")

</div>

Hi I have a table called active  
and another one called authreg  
I did a one to one relation but it turns out that one of this legacy  
database  
column name has an hyphen!!! “-” now im screw how can I tell rails  
to use it? or make an alias of some sort like with table names.?

@active = Active.new(  
:collection-owner =\> authreg.username,  
:time =\> “1207840612”)

Thanks

–  
A Spectre is haunting multinational capitalism–the spectre of free  
information.  
All the powers of ``globalism’’ have entered into an unholy alliance to  
exorcize this spectre:  
Microsoft and Disney, the World Trade Organization, the United States  
Congress and the European Commission.  
Eben Moglen from the FSF.  
[http://emoglen.law.columbia.edu/publications/dcm.html](http://emoglen.law.columbia.edu/publications/dcm.html)

Solidarity:  
[http://www.dailyradical.org](http://www.dailyradical.org)  
[http://www.diarioradical.org](http://www.diarioradical.org)  
[http://www.spboston.org](http://www.spboston.org)

> **[MESSIPOKER - Situs Judi Slot Online Dan Toto 4D Togel Terbaru](https://binaryfreedom.info/)**
>
> MESSIPOKER ialah situs judi slot online terbaik dan toto 4D online terpercaya no 1 di Indonesia yang siap memberikan pelayanan maksimal kepada anda.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 11, 2008, 7:41am UTC](https://www.ruby-forum.com/t/legacy-db-and-hyphen-on-column-name-issue/134475/2 "2008-04-11T07:41:01Z")

</div>

rek2 wrote:

> Thanks

nevermind I used ‘coolection-owner’ =\>  
and that seems to do the trick!

–  
A Spectre is haunting multinational capitalism–the spectre of free  
information.  
All the powers of ``globalism’’ have entered into an unholy alliance to  
exorcize this spectre:  
Microsoft and Disney, the World Trade Organization, the United States  
Congress and the European Commission.  
Eben Moglen from the FSF.  
[http://emoglen.law.columbia.edu/publications/dcm.html](http://emoglen.law.columbia.edu/publications/dcm.html)

Solidarity:  
[http://www.dailyradical.org](http://www.dailyradical.org)  
[http://www.diarioradical.org](http://www.diarioradical.org)  
[http://www.spboston.org](http://www.spboston.org)

> **[MESSIPOKER - Situs Judi Slot Online Dan Toto 4D Togel Terbaru](https://binaryfreedom.info/)**
>
> MESSIPOKER ialah situs judi slot online terbaik dan toto 4D online terpercaya no 1 di Indonesia yang siap memberikan pelayanan maksimal kepada anda.
