ActiveRecords

Ruby on Rails 4.2    |    Intermediate
  • 12 videos | 52m 39s
  • Earns a Badge
Rating 4.0 of 1 users Rating 4.0 of 1 users (1)
Models are the gateway to the database and ActiveRecord is the Rails library for dealing with data. Explore ActiveRecord and how to work with it.

WHAT YOU WILL LEARN

  • Describe the basics of how activerecord works
    Use has_one, has_many, and belongs_to associations
    Use the :through association
    Make one class belongs_to more than one type of another class
    Use virtual attributes
    Persist data into multiple models
  • Describe hstore and how it is used
    Use .where and .find
    Execute a raw sql query
    Compare the .select and .pluck methods
    Use different finder methods to retrieve objects from the database
    Recall how to use modules to share functionality between disparate model classes

IN THIS COURSE

  • 4m 48s
    Upon completion of this video, you will be able to describe the basics of ActiveRecord. FREE ACCESS
  • 6m 40s
    During this video, you will learn how to use the has_one, has_many, and belongs_to associations. FREE ACCESS
  • Locked
    3.  Using Advanced Associations
    5m 20s
    In this video, you will use the through association. FREE ACCESS
  • Locked
    4.  Using Polymorphic Has_many Relationships
    6m 1s
    During this video, you will learn how to make one class belong to more than one type of another class. FREE ACCESS
  • Locked
    5.  Using Virtual Attributes
    3m 47s
    In this video, you will learn how to use virtual attributes. FREE ACCESS
  • Locked
    6.  Persisting Data into Multiple Models
    4m
    Learn how to store data in multiple models. FREE ACCESS
  • Locked
    7.  Exploring PostgreSQL Enhancements
    3m 49s
    Upon completion of this video, you will be able to describe Hstore and how to use it. FREE ACCESS
  • Locked
    8.  Using Where Clauses and Find Methods
    5m 45s
    In this video, learn how to use the methods .where and .find. FREE ACCESS
  • Locked
    9.  Executing Raw SQL Queries
    2m 46s
    In this video, learn how to run a raw SQL query. FREE ACCESS
  • Locked
    10.  Using Select and Pluck
    3m 6s
    In this video, learn how to compare the .select and .pluck methods. FREE ACCESS
  • Locked
    11.  Using Other Finder Methods
    3m 7s
    Find out how to use different methods to retrieve objects from the database. FREE ACCESS
  • Locked
    12.  Reusing Common Behavior with Modules
    3m 31s
    Upon completion of this video, you will be able to recall how to use modules to share functionality between disparate model classes. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.7 of 6 users Rating 4.7 of 6 users (6)
Rating 4.0 of 1 users Rating 4.0 of 1 users (1)