mid23 zgłoszeń

Czym jest ActiveRecord w Rails?

ActiveRecord to ORM — mapuje klasy na tabele, obiekty na wiersze. Konwencje: User → tabela users. Migracje zarządzają schematem. Associations: has_many, belongs_to, has_and_belongs_to_many. Validations, callbacks, scopes. Query interface: where, joins, includes.

Więcej pytań z Ruby