- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
Which statement about ActiveRecord models is true?

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

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

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

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

Posted Date:-2022-09-17 04:21:41


More MCQS Questions and answers

Search