title: Limit the number of records in table in Rails
body: <p>I want to limit the number of records a table can hold in rails. If I have a notifications table, how can I make it work to hold only 50 records at a time. So, if a new record is added the first one is deleted and the new one is saved as the 50th.</p>
  
  <p>Is there any cool rails method to do this automatically or do I have to implement it manually in my model when I'm creating a new notification?</p>