If you're curious, read up on the Active Record (two words) pattern here: 
http://martinfowler.com/eaaCatalog/activeRecord.html

Each time you get an object, that object is built up from whatever is in the 
database record that backs it as of that moment. You either get the default 
value for that column/attribute, or you get the persisted value.

Walter

On Aug 12, 2013, at 2:07 PM, Scott Ribe wrote:

> On Aug 12, 2013, at 11:57 AM, Valentin Kotelnitski <[email protected]> 
> wrote:
> 
>> Except that I need a property in my model of a table corresponding to a 
>> newly migrated column.
>> That is the question.
> 
> ? Rails models automatically derive from the current schema. If you're 
> actually asking what I think you're asking, the answer is that you have to do 
> absolutely nothing.
> 
> -- 
> Scott Ribe
> [email protected]
> http://www.elevated-dev.com/
> (303) 722-0567 voice
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/2BEB9011-44E6-4FB0-8E55-79129181B586%40elevated-dev.com?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/C8533C7C-9F3E-44BC-BB43-D5231413989A%40wdstudio.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to