Stuart,
Exactly what I need.
Thank you,
Jeffrey
Quoting Stuart Coyle
<stuart.coyle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:>
> 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"
<r...-f/t7CGFWhwGcvWdFBKKxig@public.gmane.org> wrote:
> > Is there a way to find the default values of a model? That tracks
schema
> > changes without requiring code changes?