mardi 15 septembre 2015

Different database in ruby on rails based on variable ( demo database for product demo purpose) best way to implement?

I would like to be able easily switch database in my rails application. The idea is simple:

  1. Same codebase for production and demonstration application
  2. Different database
  3. Clean minimal implementation

My thought was perhaps based on the hostname im calling my application from, to set the database or are there better options here?

Aucun commentaire:

Enregistrer un commentaire