This goes against the rails philosophy of Convention over Configuration.
Ruby is a highly flexible language, so yes it would be possible to do that, but you would have to undo much of the auto-configuration that makes up the entire reason for using rails.