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

Question:
 After this migration has been executed, which statement would be true?
class CreateGalleries < ActiveRecord::Migration
def change
create_table :galleries do |t|
t.string :name, :bg_color
t.integer :position
t.boolean :visible, default: false
t.timestamps
end
end
end

1. The galleries table will have no primary key.

2.The galleries table will include a column named “updated_at”.

3. The galleries table will contain exactly seven columns.

4.The galleries table will have an index on the position column.

Posted Date:-2022-09-17 04:48:10


More MCQS Questions and answers

Search