Stuart,
  Exactly what I need.

Thank you,
  Jeffrey

Quoting Stuart Coyle <[email protected]>:
> 
> ModelName.columns
> Each column has an @default
> 
> e.g
> 
> User.columns.map{|c| c.default}
> 
> will give me the defaults for the User model.
> Explore a bit in the console.
> 
> On Aug 26, 5:10 am, "Jeffrey L. Taylor" <[email protected]> wrote:
> > Is there a way to find the default values of a model?  That tracks schema
> > changes without requiring code changes?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to