Ruby on Rails Wednesday, November 26, 2014

On 26 November 2014 at 16:58, tom <tomabroad@gmail.com> wrote:
> hi
>
>
> i have a sqlserver database with multiple companies in there. the table
> "prefix" give you the company name:
> [CompanyA$Vendor].*
>
>
> [CompanyB$Vendor].*
>
>
> [CompanyC$Vendor].*
>
> how can i address the right company with AR / sqlserver gem?

The preferred solution would be to adjust the database schema so as to
fit the Rails Way. So have a companies table rather than multiple
tables with a prefix.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtsj86dWJU-Bw0byFwRBoNuHnEt1dDeyyj0R7b7EQaJzA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment