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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -