Check out example codes for "rails edit models". It will help you in understanding the concepts better.

Code Example 1

rails g migration AddNameToSubscribers name:string
rake db:migrate

Learn ReactJs, React Native from akashmittal.com