Rails Database

A quick recap

Rails Database

Todays Gem — Sqlite3

$ rails g model User email:string password:string
$ rails c
$ > user = User.new(email: "abe@hello.com", password: "12345678")

Change User Information

$ > user.email 'abe@hello.com'
$ > user.email = "zebo@hello.com"
$ > user.email'zebo@hello.com'
def index 
@user = User.last
end

--

--

--

I write about holistic growth

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abe

Abe

I write about holistic growth

More from Medium

Utilizing both frontend and backend validations in your React/Ruby on Rails Web Application

Using esbuild with rails 7 in a simple way

Using PostgreSQL in Rails

Ruby on Rails: Login&Signup Tutorial