Understanding Ruby on Rails Active Record Migrations

Sdílet
Vložit
  • čas přidán 12. 06. 2024
  • Hi, My name is Andy Leverenz and I work as a Product Designer at Dribbble. For fun, I design, code, and write. Check out my blog called Web-Crunch web-crunch.com where I publish design and development tutorials with the occasional vlog.
    ====================
    Active Record migrations (within Ruby on Rails) are a convenient way to alter your database schema of a period of time. This overview/guide is a look at just what you can achieve with migrations and why they are the backbone of any given Ruby on Rails application. We'll talk about conventions, techniques, and how to extend a migration to fit your application's own respective needs.
    What are migrations?
    Active Record migrations use a Ruby DSL (Domain specific language) to generate the necessary SQL automatically so you don't have to author it by hand. This allows you to keep your schema changes to be database independent.
    Think of each migration as a new version of the database. You can add to the schema or subtract from the schema.
    Continue reading 👉 web-crunch.com/understanding-...
    ====================
    📰 Subscribe:
    czcams.com/users/webcrunc...
    💎🛤 NEW COURSE: HELLO RAILS - Get notified
    hellorails.io
    💻 Previously published at:
    web-crunch.com/understanding-...
    💻 Check out the blog:
    web-crunch.com
    🦄 Check out my personal site:
    justalever.com
    🚀 Links:
    Weekly Newsletter: web-crunch.com/subscribe
    Twitter: / webcrunchblog
    Twitter(Personal Account): / justalever
    Facebook: / webcrunchblog
    Dribbble: dribbble.com/justalever
    Github: github.com/justalever
    Medium: / the-web-crunch
    📘Check out my book on UX Design:
    "LUXD: Learn User Experience Design"
    web-crunch.com/books/luxd
    📙 Check out my FREE book on Tumblr Theming:
    "Pro Tumblr Theming"
    web-crunch.com/books/ptt
    💯 Need awesome web hosting? Check out cloudways. They allow me to use a variety of hosting providers and build apps with ease:
    bit.ly/webcrunchhosting
    🌊 Need more advanced hosting for Rails, PHP, Node, or other projects? Digital Ocean has you covered.
    m.do.co/c/ee243ee15648
    💎 Ruby on Rails devs, Try HatchBox.io. You'll save upwards of 50% compared to Heroku. I use it and love it!
    hatchbox.io/?via=andy
    ☕️ 🙏🏻 Patreon
    / webcrunch
    ☕️ Or buy me a coffee
    www.buymeacoffee.com/webcrunch

Komentáře • 31

  • @antonioguarisco6794
    @antonioguarisco6794 Před 3 měsíci

    Best Rails Active Record video, better than Rails guides lol, thanks.

  • @MrAnegm
    @MrAnegm Před 3 lety +2

    This is great to see from the A to Z and how to troubleshoot and find answers, really excited !!

  • @CorinnPope
    @CorinnPope Před 4 lety +2

    Thanks for this great series! I'm grateful for you putting in the time to create these. Keep creating awesome videos :-)

  • @weefunkster
    @weefunkster Před 5 lety +2

    Thank you, these types of videos really help with learning!

  • @luizmelo8611
    @luizmelo8611 Před 5 lety +1

    Man your videos are awesome. Keep up the hard work, it's much appreciated.

  • @BradBreiten
    @BradBreiten Před rokem

    Great video! Super concise explanations! I appreciate the work you put in for it.

  • @iraklisk4774
    @iraklisk4774 Před 4 lety +1

    Thank you, very good and helpful video!

  • @randerins
    @randerins Před 3 lety +2

    Nice and clear, thanks a lot!

  • @marcosrenatorochademedeiro3056

    thanks man. you're a awesome teacher

  • @corbettknoff5123
    @corbettknoff5123 Před rokem

    Thank you!

  • @edwinmensah3971
    @edwinmensah3971 Před 4 lety +1

    Great video thanks :)

  • @mattnemeth1333
    @mattnemeth1333 Před 3 lety +1

    Would have spent a ton of time learning all these commands from reading the docs. This is exactly what I wanted to know how to do. Thanks!

  • @leviatanMX
    @leviatanMX Před 4 lety

    Thanks for your videos, some tool to create migrations using an existing database

  • @primaprima5465
    @primaprima5465 Před rokem

    thanks bro, its work

  • @muhmmmadbilal9472
    @muhmmmadbilal9472 Před 4 lety

    awesome!

  • @adante407
    @adante407 Před 5 lety +1

    Great video. Are you going to continue the build with Rails series. It's great.

    • @Webcrunch
      @Webcrunch  Před 5 lety +1

      Thanks! I plan to yes, those are super time consuming so they will be coming at less frequent intervals. I'm going to poll soon to see what I should build next.

  • @juancamilomorales7667
    @juancamilomorales7667 Před 5 lety +1

    Andy, I wanna know what oh-my-zsh theme are you using? :D

    • @Webcrunch
      @Webcrunch  Před 5 lety +1

      I just checked. It's called "theunraveler" but I've recently switched to github.com/denysdovhan/spaceship-prompt

    • @juancamilomorales7667
      @juancamilomorales7667 Před 5 lety +1

      Thanks, maestre!

  • @razvacos7469
    @razvacos7469 Před 5 lety

    do you know crystal lang and amber framework?

    • @Webcrunch
      @Webcrunch  Před 5 lety

      I want to know them! I hear great things about crystal.

    • @razvacos7469
      @razvacos7469 Před 5 lety

      @@Webcrunch amberframework.org can handle 891000 json responses per second compared to node.js which can 561000.