How do I create a Rails model in a different DB schema? -


i have rails 3.2 app backed ms sql 2008. models default created in dbo schema. want have model db table has limited access want put different db schema. how do that?

turns out can define table name:

def change   create_table "schema_name.table_name" |t|     #init table   end end 

Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -