Check out example codes for "how to create a database in production mode rails". It will help you in understanding the concepts better.

Code Example 1

RAILS_ENV=production bundle exec rake db:create db:schema:load

Learn ReactJs, React Native from akashmittal.com