title: How to automatically change record in database?
body: <p>I need to automatically change a record in my database on a specific date and time.</p>
  
  <p>Example: When the date and time is 01/12/2012 17:15:00 I want some record to automatically be set to 1. Is there any solution to this?</p>
  
  <p>(I am using Rails 3.2.6)</p>
  
  <p><strong>Update 30.11.12 - 13:06</strong></p>
  
  <p>The real problem is that I have a datetime record in my database, when the date and time in this record exceeds todays date and time - then I want another record to be set to 1. Is there any way I can make an <code>if</code> statement, or something, somewhere in my controller?</p>