How to change table for Rails models on the fly

Maybe you need your multi tenant application database to partition horizontally (shard). Probably you want to store different customers data in different tables.