Can I specify custom environments for my Rails/Rack applications?

Yes, you can. When you configure your application, just specify an environment (default is production), and you're good to go.
Scalarium will also create an entry for this environment in database.yml for you.