couchbase-ruby-model icon indicating copy to clipboard operation
couchbase-ruby-model copied to clipboard

Rails generator for model

Open ncavig opened this issue 11 years ago • 2 comments

Couchbase-model shouldn't assume all models will inherit from Couchbase::Model - it essentially breaks the active record model generation flow when the couchbase-model gem is present in the gemfile.

Example: My app connects to several datastores including mysql and couchbase so my use case is to have models that inherit from different parent base classes

ncavig avatar Jul 02 '13 21:07 ncavig

I also have same issue. Want to use mysql and couchbase in same app, but couchbase-model in gemfile does not allow a model generation.

pankajbatra avatar Sep 17 '14 18:09 pankajbatra

You might keep your models in plain old ruby objects to express the business logic. And use couchbase and mysql only for persistence model. Yes it looks like limitation for now, but it will be definitely addressed in the future.

btw, this video from uncle bob is very nice: https://www.youtube.com/watch?v=WpkDN78P884

avsej avatar Sep 17 '14 19:09 avsej