task :gen_db_yml - generates a database.yml file and copies it to the server task : symlink_database_yml - creates a symlink from shared dir/database.yml to the current release task : after_update_code calls : symlink_database_yml