Check out example codes for "new rails app with mysql". It will help you in understanding the concepts better.

Code Example 1

rails new app_name -d mysql

Code Example 2

rails new app_name --skip-webpack-install --skip-javascript -d mysql

Learn ReactJs, React Native from akashmittal.com