Hi Tommaso,

You can set table_name inside rails model.

Example:

class A < ActiveRecord::Base
>   set_table_name "aa"
> end


- Sandip
On Mon, Apr 21, 2014 at 2:23 PM, Tommaso Visconti <
[email protected]> wrote:

> Hi all,
> I have more rails apps sharing the same database and this creates problems
> with schema_migrations table.
> Do you know haw to customize that table name (so every app uses a
> different one)? Or there's a better approach to this situation?
>
> Thanks!
> Tommaso
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CAK4fz2pUaznaK_P-rz%3DgKfWhww28nDZHaj5gY5oXodm7Gih_dQ%40mail.gmail.com<https://groups.google.com/d/msgid/rubyonrails-talk/CAK4fz2pUaznaK_P-rz%3DgKfWhww28nDZHaj5gY5oXodm7Gih_dQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
www.funonrails.com

Mobile +91-9975773744
Twitter, Github @sandipransing
Skype sandip.ransing
LinkedIn www.linkedin.com/in/sandipransing

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAPvJL2_AqgtCUjdFtcc7%2BQOzMzohz4iALmQ7CqtCHw%2BLPqL8Xw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to