hi sandip, thanks for the answer, but the problem isn't using different tables, but avoid using the same schema_migrations table automatically generated by rails. I need to use the same database to share most tables, but different apps have some tables which should be shared so every app has its migrations, which causes a lot of problems because all the apps use the schema_migrations table
2014-04-21 12:28 GMT+02:00 sandip ransing <[email protected]>: > 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<https://groups.google.com/d/msgid/rubyonrails-talk/CAPvJL2_AqgtCUjdFtcc7%2BQOzMzohz4iALmQ7CqtCHw%2BLPqL8Xw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAK4fz2qLAR0SQiT3N6KGjYV6Hx%2B5Ptz8rNyJQMqZ%3D5TZ-RJR%3Dw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

