Which of the following commands will clear out sample users from the development database?
Correct Answer: rake db:reset
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Ruby On Rails Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Ruby On Rails MCQ Questions
Given below are two statements regarding the Ruby programming language: Statement X: 'redo' restarts an iteration of the most internal loop, without checking loop condition. Statement Y: 'retry' restarts the invocation of an iterator call. Also, arguments to the iterator are re-evaluated. Which of the following options is correct?
Choose the best way to implement sessions in Rails 3: A) Using CookieStore B) By creating a session table and setting config/initializers/ session_store.rb with Rails.application.config.session_store :active_record_store C) By setting config/initializers/session_store.rb with Rails.application.config.session_store :active_record_store only
Which the correct way to skip ActiveRecords in Rails 3?
Which is the default way that Rails seeds data for tests?
Which of the following options, when passed as arguments, skips a particular validation?
Best way to create primary key as a string field instead of integer in rails.
Which is the correct way to know the Rails root directory path?
What is difference between 'has_one' and 'belong_to'?
What is the output of the following Ruby code? puts 'The multiplication output of 10,10,2 is #{10*10*2}'
Which choices will write routes for the API versioning scenario described below? /api/users returns a 301 to /api/v2/users /api/v1/users returns a 200 of users index at version 1 /api/v3/users returns a 301 to /api/v2/users /api/asdf/users returns a 301 to /api/v2/users