![]() Instead of using raw SQL to find database records, Active Record provides better ways to carry out the same operations. This guide covers all the associations provided by Active Record. In Active Record, an association is a connection between two Active Record models. ![]() This guide teaches you how to hook into this object life cycle of Active Record objects. ![]() This guide teaches you how to validate the state of objects before they go into the database, using Active Record's validations feature.Ĭallbacks make it possible to write code that will run whenever an object is created, updated, destroyed, etc. Validations are used to ensure that only valid data is saved into your database. Rather than write schema modifications in pure SQL, migrations allow you to use a Ruby DSL to describe changes to your tables. Migrations are a feature of Active Record that allows you to evolve your database schema over time. This guide will get you started with Active Record models and persistence to the database. Models Active Record BasicsĪctive Record allows your models to interact with the application's database. ![]() Everything you need to know to install Rails and create your first application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |