ruby - Rails - Sharing DB and Models -


i building series of rails applications different use cases, using same database schema. migrations , models created in main app. common approach in rails reuse models in other apps in order not duplicate code?

what you're looking called multitenancy. explanation , numerous ways of implementation aren't suited short answer, since there many different use cases.

there many guides show how this, though, , i've listed couple starting points below.

alternatively, acts tenant gem attempt abstract pain away (mostly).


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -