holman/play — pull request #47 by defunkt (2011-12-03 03:12:06+00:00)
Title: Migrate database as final step of setup.

Needs to happen after config/play.yml is created
otherwise bin/play dies while looking for it.

Was getting this error:

```
→ bin/setup

play ►
a nifty server for your musics.

+ Bundler found.
+ Bootstrapping your Rubies.
WARNING: cicphash-1.0.0 has an invalid nil value for @cert_chain
WARNING: apetag-1.1.2 has an invalid nil value for @cert_chain
WARNING: flacinfo-rb-0.4 has an invalid nil value for @cert_chain

+ afplay and say found.
+ MySQL found.
+ What's the username for the MySQL database user? › root
+ What's the password for the MySQL database user? ›
+ You now have a database named "play".

+ Migrating your database.
/Users/chris/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby-audioinfo-0.1.7/lib/audioinfo.rb:1:in `': iconv will be deprecated in the future, use String#encode instead.
/Users/chris/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/fssm-0.2.7/lib/fssm/support.rb:40: Use RbConfig instead of obsolete and deprecated Config.
/Users/chris/Code/play/lib/play/app.rb:28:in `initialize': No such file or directory - config/play.yml (Errno::ENOENT)
from /Users/chris/Code/play/lib/play/app.rb:28:in `open'
from /Users/chris/Code/play/lib/play/app.rb:28:in `block in '
from /Users/chris/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/sinatra-1.3.1/lib/sinatra/base.rb:1273:in `configure'
from /Users/chris/Code/play/lib/play/app.rb:25:in `'
from /Users/chris/Code/play/lib/play/app.rb:4:in `'
from /Users/chris/Code/play/lib/play/app.rb:3:in `'
from /Users/chris/Code/play/lib/play.rb:18:in `require'
from /Users/chris/Code/play/lib/play.rb:18:in `'
from /Users/chris/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/chris/.rbenv/versions/1.9.3-p0/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from bin/play:6:in `

'
```