<div dir="ltr"><div>Bit of googling found <a href="https://gist.github.com/vjt/4548844">https://gist.github.com/vjt/4548844</a> - hopefully its useful. You'll probably have to create the database first, either using pg_create or the rails rake task. Also I'd recommend setting<br><br> <span class="">`Rails</span>.application.config.active_record.schema_format` to <span class="">:sql in application.rb<br><br></span></div><span class="">Hope that helps<br></span></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 March 2016 at 04:14, gvim <span dir="ltr"><<a href="mailto:gvimrc@gmail.com" target="_blank">gvimrc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A while back I discovered a gem which generates Rails models from an existing database. Can you think of any?<span class="HOEnZb"><font color="#888888"><br>
<br>
gvim</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
Archives: <a href="http://lists.lrug.org/pipermail/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/pipermail/chat-lrug.org</a><br>
Manage your subscription: <a href="http://lists.lrug.org/options.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/options.cgi/chat-lrug.org</a><br>
List info: <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" rel="noreferrer" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div>------------------------</div>Andrew Premdas<div><a href="http://blog.andrew.premdas.org" target="_blank">blog.andrew.premdas.org</a></div></div>
</div>