ActiveRecords
Ruby on Rails 4.2
| Intermediate
- 12 videos | 52m 39s
- Earns a Badge
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 worksuse has_one, has_many, and belongs_to associationsuse the :through associationmake one class belongs_to more than one type of another classuse virtual attributespersist data into multiple models
-
describe Hstore and how it is useduse .where and .findexecute a raw SQL querycompare the .select and .pluck methodsuse different finder methods to retrieve objects from the databaserecall how to use modules to share functionality between disparate model classes
IN THIS COURSE
-
1.Introduction to ActiveRecord4m 48sUP NEXT
-
2.Using Basic Associations6m 40s
-
3.Using Advanced Associations5m 20s
-
4.Using Polymorphic Has_many Relationships6m 1s
-
5.Using Virtual Attributes3m 47s
-
6.Persisting Data into Multiple Models4m
-
7.Exploring PostgreSQL Enhancements3m 49s
-
8.Using Where Clauses and Find Methods5m 45s
-
9.Executing Raw SQL Queries2m 46s
-
10.Using Select and Pluck3m 6s
-
11.Using Other Finder Methods3m 7s
-
12.Reusing Common Behavior with Modules3m 31s
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.