I'm actually still confused regarding understanding how the code I asked about works. Can you kindly just give a detailed explanation of just the code and I think this will be very helpful especially for the migrations part at least. Thanks. -- Posted via http://www.ruby-forum.com/.