On Thursday, 12 July 2012 at 7:52 AM, Mike Moore wrote:

> Agreed. Using AR to access views is very useful. I would love it if schema.rb 
> was view aware though.

Supporting views in schema.rb and migrations is almost impossible to do though, 
we'd have to dump the exact SQL that's in use or support arbitrary SQL round 
tripping.  If we were going to dump the sql straight from the db that we'd have 
a poor-man's version of the :sql schema_format we have already.  If we build a 
round-trip capable SQL parser we're clinically insane and should be 
institutionalised.

I don't really see what more we need to support, can't you just use :sql for 
the schema_format and you get all the functionality you want, and more?


-- 
Cheers,

Koz

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to