copy_static_file 'config/database.yml' gsub_file 'config/database.yml', /PROJECT/, @app_name git add: 'config/database.yml' git_commit 'Add config/database.yml.' in_root do run "bundle exec rake db:create db:migrate db:test:clone" end git add: 'db/schema.rb' git_commit 'Create database, adding db/schema.rb.'