0 votes
in Ruby by

Which statement about ActiveRecord models is true?

 a. Each database column requres adding a matching attr_accessor declaration in the ActiveRecord model.

 b. All attributes in an ActiveRecord model are read-only declared as writable using attr_accessible

 c. An instance of an ActiveRecord model will have attributes that match the columns in a corresponding database table.

 d. ActiveRecord models can have only attributes that have a matching database column

1 Answer

0 votes
by

Which statement about ActiveRecord models is true?

Correct answer is :-  An instance of an ActiveRecord model will have attributes that match the columns in a corresponding database table.

Related questions

0 votes
asked Sep 2, 2022 in Ruby by DavidAnderson
0 votes
asked Sep 3, 2022 in Ruby by DavidAnderson
...