[LRUG] Initial migration for new Rails 4 project using existing postgres db

Andrew Stewart boss at airbladesoftware.com
Thu Mar 17 03:22:22 PDT 2016


> On 17 Mar 2016, at 3:34 am, gvim <gvimrc at gmail.com> wrote:
> That's my next approach though I have to somehow get a rather large VIEW into the models somehow. 

I've never needed to do it, but I'm under the impression that using a view in a model should be ok (famous last words).  Maybe these will help:

https://github.com/thoughtbot/scenic

https://blog.pivotal.io/labs/labs/database-views-performance-rails

https://dan.chak.org/enterprise-rails/chapter-11-view-backed-models/

Yours,
Andy Stewart


More information about the Chat mailing list