Câu hỏi phỏng vấn Ruby on Rails
Câu hỏi

What Is ORM In Rails?

Câu trả lời

ORM (Object-Relational Mapping) in Ruby on Rails is a technique that maps database tables to Ruby classes, allowing developers to interact with the database using Ruby code instead of writing raw SQL queries[1][2][3][4].

In Rails, the ORM layer is called Active Record. It follows the standard ORM model where:

  • Tables correspond to classes
  • Rows correspond to objects
  • Columns correspond to object attributes[4]

Active Record provides an abstraction layer that simplifies database operations, such as creating, reading, updating, and deleting records. It also handles database schema migrations, which allow developers to modify the database structure usi...

entry

entry

Gợi ý câu hỏi phỏng vấn

expert

What sort of problems you have faced with Ruby on Rails and how do you think the same can affect the
projects?

senior

How would you choose between Belongs_to And Has_one ?

junior

Mention what is the difference between a gem and a plugin in Ruby?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào