@techapj has some walkthroughs here under howto on getting to the rails console and issuing SQL commands.