how to create database in ruby on rails application code example Example: create rails app with mysql database rails new app_name -d mysql