How to Use Migrations in Rails (Step-by-Step)

  Рет қаралды 8,730

Jesus Castello

Jesus Castello

Күн бұрын

Пікірлер: 6
@salimmalik302
@salimmalik302 2 жыл бұрын
Thank you for this tutorial
@jmcbri
@jmcbri 3 жыл бұрын
Thanks Jesus. How about a video on managing migration files?
@JesusCastello
@JesusCastello 3 жыл бұрын
I don't think you're supposed to touch them after you run the migrations & commit them to your git repo. Btw there is a command "rails migrate:db:status" that allows you to see which migrations have been run.
@jmcbri
@jmcbri 3 жыл бұрын
@@JesusCastello Thanks. I had read about "rails...status" recently. I think at some point, it makes sense to delete the migration files and do db:schema:load instead. I understand that would eliminate the ability to undo the migrations, but constructing the database by running 33 migrations seems, awkward, I guess.
@jmcbri
@jmcbri 3 жыл бұрын
PS, I think it is "rails db:migrate:status", not "rails migrate:db:status". Again, thanks.
@martincabo2477
@martincabo2477 4 жыл бұрын
Está buenísima la idea, pero me parece que si haces el vídeo en español quería un poco más claro... solo es una observación. Saludos!
What's Inside The Rails Database Folder?
11:27
Jesus Castello
Рет қаралды 444
How to Use Scopes in Ruby on Rails
12:24
Jesus Castello
Рет қаралды 9 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Understanding Ruby on Rails Active Record Migrations
27:30
webcrunch
Рет қаралды 20 М.
Ruby on Rails: What's The Difference Between Joins & Includes?
14:02
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 219 М.
Rails Migration Basics
19:06
APPSIMPACT Academy
Рет қаралды 10 М.
How to store data with Python and SQLite3
9:15
John Watson Rooney
Рет қаралды 46 М.
Strong Migrations Gem for Ruby on Rails 7
17:18
Deanin
Рет қаралды 987
@mentions for Users with ActionText in Rails 6
20:25
GoRails
Рет қаралды 9 М.
3 Key Differences Between Junior and Senior Rails Developers
7:40