Code Monkey home page Code Monkey logo

active-record-conclusion's Introduction

Active Record Conclusion

We have just explored the world of ORMs: Object Relation Mappers. When creating applications with Ruby on Rails, we use an ORM called Active Record, integrated into our projects as a Ruby gem. Active Record creates a link between Ruby and our database, which means it can take care of translating queries we write using Ruby into commands the database understands. It makes our work easier and faster.

Over the past several lessons, we covered the basic mechanics of Active Record, including connecting to a database, creating tables and finding/saving data. Since it's always important to know what's going on under the surface of the tools we use, we also explored how Active Record abstracts the methods we employ. Of course, we then practiced employing those Active Record methods. We also learned that instead of making individual, manual changes to databases, we can use Active Record migrations, which apply database changes as an organizated structure. Migrations serve as a sort of version control system for our database, so we covered how they work and how to write our own. Ultimately, we saw how we can create CRUD actions—create, read, update, delete—for our applications with Active Record, an essential skill we'll be using as we create web applications. We also encountered Rake, a tool that helps us create and automate tasks in Ruby.

We have Ruby knowledge, we have database knowledge and now we know how to use the ORM layer to communicate between the two. We're ready to move on and learn how to use these blocks to build something powerful.

active-record-conclusion's People

Contributors

jenmyers avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.