ruby on rails - can I use the same schema prefix in two different databases in MS Sql Server. i.e. production/development -
i developing rails 4/ ruby 2 apps. wanted have separate production , development databases , app folders. using schemas/schema prefixes make work. far, pretty working.
the structure have sql server following assuming in= inventory app, pr = production app etc.
- web - - in.tablename1 -- in.tablename2 - - pr.tablename1 - web_dev - - in.tablename1 - - in.tablename2 - - pr.tablename1 i have separate application folders as
- inetpub\wwwroot\apps\inventory - inetpub\wwwroot\apps\production - inetpub\wwwroot\development\inventory - inetpub\wwwroot\development\production i beginning think using same schema prefix both production , development databases might not idea.
does matter if use schema prefix of in. both production , development or should setting in. = inventory production , ind. = inventory development.
you can use same schema names in different databases. in fact, 1 reasonable use when have development , release version of same database. code can access different schemas using name, , don't have worry database is.
do note schema created within databases. 2 schemas same name have same relationship each other 2 tables same name have (in different databases). is, common name coincidence.
Comments
Post a Comment