Description:
Generate the models like the model generator from rails but create the files in the multiple_dbs databases. You can use it as you usually use the rails model generator You can use the options: --only and pass the name of the databases space separated. This only create the model in the specified databases --skip and pass the name of the databases space separated. This not create the model in the specified databases
Example:
rails g multiple_dbs_model User email:string --only=db1 db3 --skip=db3