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

Code Example 1

class AddColumnTitles < ActiveRecord::Migration
  def up
    add_column :titles, :place, :string
  end

  def down
    remove_column :titles, :place, :string
  end
end

Learn ReactJs, React Native from akashmittal.com